public static final class StorageEntityCache.Default extends Object implements StorageEntityCache<StorageEntity.Default>, one.microstream.persistence.types.Unpersistable
StorageEntityCache.Default| Modifier and Type | Method and Description |
|---|---|
long |
cacheSize() |
int |
channelIndex() |
long |
clearCache() |
void |
copyRoots(ChunksBuffer dataCollector) |
long |
entityCount() |
StorageEntity.Default |
getEntry(long objectId) |
boolean |
incrementalEntityCacheCheck(long nanoTimeBudgetBound) |
boolean |
incrementalGarbageCollection(long nanoTimeBudgetBound,
StorageChannel channel)
Returns
true if there are no more oids to mark and false if time ran out. |
boolean |
issuedEntityCacheCheck(long nanoTimeBudgetBound,
StorageEntityCacheEvaluator entityEvaluator) |
boolean |
issuedGarbageCollection(long nanoTimeBudgetBound,
StorageChannel channel)
Returns
true if there are no more oids to mark and false if time ran out. |
StorageEntityType.Default |
lookupType(long typeId) |
void |
postStorePutEntities(ByteBuffer[] chunks,
long[] chunksStoragePositions,
StorageLiveDataFile.Default dataFile) |
void |
reset()
Closes all resources (files, locks, etc.).
|
static void |
setGarbageCollectionEnabled(boolean enabled)
Deprecated.
experimental
|
StorageTypeDictionary |
typeDictionary() |
@Deprecated public static void setGarbageCollectionEnabled(boolean enabled)
Enable at your own risk!
Also note that this method is a temporary experimental function for debugging purposes
and can disappear at any release.
Do not use this is production mode.
enabled - true if the gc should be enabled, false otherwisepublic final void reset()
StorageChannelResetablePartreset in interface StorageChannelResetablePartreset in interface StorageEntityCache<StorageEntity.Default>public final StorageEntity.Default getEntry(long objectId)
public final long entityCount()
public int channelIndex()
channelIndex in interface StorageHashChannelPartpublic final long cacheSize()
cacheSize in interface StorageEntityCache<StorageEntity.Default>public final long clearCache()
clearCache in interface StorageEntityCache<StorageEntity.Default>public final StorageTypeDictionary typeDictionary()
typeDictionary in interface StorageEntityCache<StorageEntity.Default>public void postStorePutEntities(ByteBuffer[] chunks, long[] chunksStoragePositions, StorageLiveDataFile.Default dataFile) throws InterruptedException
InterruptedExceptionpublic final StorageEntityType.Default lookupType(long typeId)
lookupType in interface StorageEntityCache<StorageEntity.Default>public void copyRoots(ChunksBuffer dataCollector)
copyRoots in interface StorageEntityCache<StorageEntity.Default>public final boolean incrementalEntityCacheCheck(long nanoTimeBudgetBound)
incrementalEntityCacheCheck in interface StorageEntityCache<StorageEntity.Default>public boolean issuedEntityCacheCheck(long nanoTimeBudgetBound,
StorageEntityCacheEvaluator entityEvaluator)
issuedEntityCacheCheck in interface StorageEntityCache<StorageEntity.Default>public final boolean issuedGarbageCollection(long nanoTimeBudgetBound,
StorageChannel channel)
true if there are no more oids to mark and false if time ran out.
(Meaning the returned boolean effectively means "Was there enough time?")issuedGarbageCollection in interface StorageEntityCache<StorageEntity.Default>public final boolean incrementalGarbageCollection(long nanoTimeBudgetBound,
StorageChannel channel)
true if there are no more oids to mark and false if time ran out.
(Meaning the returned boolean effectively means "Was there enough time?")incrementalGarbageCollection in interface StorageEntityCache<StorageEntity.Default>Copyright © 2022 MicroStream Software. All rights reserved.