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 classStorageEntityCache.Default
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longcacheSize()longclearCache()voidcopyRoots(ChunksBuffer dataCollector)booleanincrementalEntityCacheCheck(long nanoTimeBudgetBound)booleanincrementalGarbageCollection(long nanoTimeBudgetBound, StorageChannel channel)booleanissuedEntityCacheCheck(long nanoTimeBudgetBound, StorageEntityCacheEvaluator entityEvaluator)booleanissuedGarbageCollection(long nanoTimeBudgetBound, StorageChannel channel)StorageEntityType<E>lookupType(long typeId)voidreset()Closes all resources (files, locks, etc.).StorageTypeDictionarytypeDictionary()-
Methods inherited from interface one.microstream.storage.types.StorageHashChannelPart
channelIndex
-
-
-
-
Method Detail
-
typeDictionary
StorageTypeDictionary typeDictionary()
-
lookupType
StorageEntityType<E> lookupType(long typeId)
-
incrementalEntityCacheCheck
boolean incrementalEntityCacheCheck(long nanoTimeBudgetBound)
-
incrementalGarbageCollection
boolean incrementalGarbageCollection(long nanoTimeBudgetBound, StorageChannel channel)
-
issuedGarbageCollection
boolean issuedGarbageCollection(long nanoTimeBudgetBound, StorageChannel channel)
-
issuedEntityCacheCheck
boolean issuedEntityCacheCheck(long nanoTimeBudgetBound, StorageEntityCacheEvaluator entityEvaluator)
-
copyRoots
void copyRoots(ChunksBuffer dataCollector)
-
cacheSize
long cacheSize()
-
clearCache
long clearCache()
-
reset
void reset()
Description copied from interface:StorageChannelResetablePartCloses 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:
resetin interfaceStorageChannelResetablePart
-
-