Package org.teavm.cache
Class DiskMethodNodeCache
- java.lang.Object
-
- org.teavm.cache.DiskMethodNodeCache
-
- All Implemented Interfaces:
MethodNodeCache
public class DiskMethodNodeCache extends java.lang.Object implements MethodNodeCache
-
-
Constructor Summary
Constructors Constructor Description DiskMethodNodeCache(java.io.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, java.util.function.Supplier<java.lang.String[]> dependencies)voidstoreAsync(MethodReference methodReference, AsyncMethodNode node, java.util.function.Supplier<java.lang.String[]> depenencies)
-
-
-
Constructor Detail
-
DiskMethodNodeCache
public DiskMethodNodeCache(java.io.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, java.util.function.Supplier<java.lang.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, java.util.function.Supplier<java.lang.String[]> depenencies)
- Specified by:
storeAsyncin interfaceMethodNodeCache
-
flush
public void flush() throws java.io.IOException- Throws:
java.io.IOException
-
-