Package org.teavm.cache
Class DiskMethodNodeCache
- java.lang.Object
-
- org.teavm.cache.DiskMethodNodeCache
-
- All Implemented Interfaces:
MethodNodeCache
public class DiskMethodNodeCache extends Object implements MethodNodeCache
-
-
Constructor Summary
Constructors Constructor Description DiskMethodNodeCache(File directory, ReferenceCache referenceCache, SymbolTable symbolTable, SymbolTable fileTable, SymbolTable variableTable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflush()AstCacheEntryget(MethodReference methodReference, CacheStatus cacheStatus)AsyncMethodNodegetAsync(MethodReference methodReference, CacheStatus cacheStatus)voidstore(MethodReference methodReference, AstCacheEntry entry, Supplier<String[]> dependencies)voidstoreAsync(MethodReference methodReference, AsyncMethodNode node, Supplier<String[]> depenencies)
-
-
-
Constructor Detail
-
DiskMethodNodeCache
public DiskMethodNodeCache(File directory, ReferenceCache referenceCache, SymbolTable symbolTable, SymbolTable fileTable, SymbolTable variableTable)
-
-
Method Detail
-
get
public AstCacheEntry get(MethodReference methodReference, CacheStatus cacheStatus)
- Specified by:
getin interfaceMethodNodeCache
-
store
public void store(MethodReference methodReference, AstCacheEntry entry, Supplier<String[]> dependencies)
- Specified by:
storein interfaceMethodNodeCache
-
getAsync
public AsyncMethodNode getAsync(MethodReference methodReference, CacheStatus cacheStatus)
- Specified by:
getAsyncin interfaceMethodNodeCache
-
storeAsync
public void storeAsync(MethodReference methodReference, AsyncMethodNode node, Supplier<String[]> depenencies)
- Specified by:
storeAsyncin interfaceMethodNodeCache
-
flush
public void flush() throws IOException- Throws:
IOException
-
-