Package one.microstream.storage.types
Interface StorageEntityCache<E extends StorageEntity>
- All Superinterfaces:
StorageChannelResetablePart
,StorageHashChannelPart
- All Known Implementing Classes:
StorageEntityCache.Default
public interface StorageEntityCache<E extends StorageEntity> extends StorageChannelResetablePart
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
StorageEntityCache.Default
-
Method Summary
Modifier and Type Method Description long
cacheSize()
long
clearCache()
void
copyRoots(ChunksBuffer dataCollector)
boolean
incrementalEntityCacheCheck(long nanoTimeBudgetBound)
boolean
incrementalGarbageCollection(long nanoTimeBudgetBound, StorageChannel channel)
boolean
issuedEntityCacheCheck(long nanoTimeBudgetBound, StorageEntityCacheEvaluator entityEvaluator)
boolean
issuedGarbageCollection(long nanoTimeBudgetBound, StorageChannel channel)
StorageEntityType<E>
lookupType(long typeId)
void
reset()
Closes all resources (files, locks, etc.).StorageTypeDictionary
typeDictionary()
-
Method Details
-
typeDictionary
StorageTypeDictionary typeDictionary() -
lookupType
-
incrementalEntityCacheCheck
boolean incrementalEntityCacheCheck(long nanoTimeBudgetBound) -
incrementalGarbageCollection
-
issuedGarbageCollection
-
issuedEntityCacheCheck
boolean issuedEntityCacheCheck(long nanoTimeBudgetBound, StorageEntityCacheEvaluator entityEvaluator) -
copyRoots
-
cacheSize
long cacheSize() -
clearCache
long clearCache() -
reset
void reset()Description copied from interface:StorageChannelResetablePart
Closes all resources (files, locks, etc.). Clears all variable length items (cache, registry, etc.). Resets internal state to initial values. For itself and all its parts (entity cache, file manager, etc.). Basically a "back to just being born" action.- Specified by:
reset
in interfaceStorageChannelResetablePart
-