Package one.microstream.storage.types
Interface StorageEntityCache<I extends StorageEntityCacheItem<I>>
- All Superinterfaces:
StorageChannelResetablePart,StorageHashChannelPart
- All Known Implementing Classes:
StorageEntityCache.Default
public interface StorageEntityCache<I extends StorageEntityCacheItem<I>> extends StorageChannelResetablePart
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classStorageEntityCache.Default -
Method Summary
Modifier and Type Method Description longcacheSize()longclearCache()voidcopyRoots(ChunksBuffer dataCollector)booleanincrementalGarbageCollection(long nanoTimeBudgetBound, StorageChannel channel)booleanincrementalLiveCheck(long nanoTimeBudgetBound)booleanissuedCacheCheck(long nanoTimeBudget, StorageEntityCacheEvaluator entityEvaluator)booleanissuedGarbageCollection(long nanoTimeBudget, StorageChannel channel)StorageEntityType<I>lookupType(long typeId)voidreset()Closes all resources (files, locks, etc.).StorageTypeDictionarytypeDictionary()
-
Method Details
-
typeDictionary
StorageTypeDictionary typeDictionary() -
lookupType
-
incrementalLiveCheck
boolean incrementalLiveCheck(long nanoTimeBudgetBound) -
incrementalGarbageCollection
-
issuedGarbageCollection
-
issuedCacheCheck
-
copyRoots
-
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
-