Package org.teavm.cache
Class InMemoryProgramCache
- java.lang.Object
-
- org.teavm.cache.InMemoryProgramCache
-
- All Implemented Interfaces:
ProgramCache
public class InMemoryProgramCache extends Object implements ProgramCache
-
-
Constructor Summary
Constructors Constructor Description InMemoryProgramCache(ReferenceCache referenceCache, InMemorySymbolTable symbolTable, InMemorySymbolTable fileSymbolTable, InMemorySymbolTable variableSymbolTable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit()voiddiscard()Programget(MethodReference method, CacheStatus cacheStatus)intgetPendingItemsCount()voidinvalidate()voidstore(MethodReference method, Program program, Supplier<String[]> dependencies)
-
-
-
Constructor Detail
-
InMemoryProgramCache
public InMemoryProgramCache(ReferenceCache referenceCache, InMemorySymbolTable symbolTable, InMemorySymbolTable fileSymbolTable, InMemorySymbolTable variableSymbolTable)
-
-
Method Detail
-
get
public Program get(MethodReference method, CacheStatus cacheStatus)
- Specified by:
getin interfaceProgramCache
-
store
public void store(MethodReference method, Program program, Supplier<String[]> dependencies)
- Specified by:
storein interfaceProgramCache
-
commit
public void commit()
-
getPendingItemsCount
public int getPendingItemsCount()
-
discard
public void discard()
-
invalidate
public void invalidate()
-
-