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 class
StorageEntityCache.Default
-
Method Summary
Modifier and Type Method Description long
cacheSize()
long
clearCache()
void
copyRoots(ChunksBuffer dataCollector)
boolean
incrementalGarbageCollection(long nanoTimeBudgetBound, StorageChannel channel)
boolean
incrementalLiveCheck(long nanoTimeBudgetBound)
boolean
issuedCacheCheck(long nanoTimeBudget, StorageEntityCacheEvaluator entityEvaluator)
boolean
issuedGarbageCollection(long nanoTimeBudget, StorageChannel channel)
StorageEntityType<I>
lookupType(long typeId)
void
reset()
Closes all resources (files, locks, etc.).StorageTypeDictionary
typeDictionary()
-
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: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
-