public class HotRestartHiDensityNativeMemoryCacheRecordStore extends HiDensityNativeMemoryCacheRecordStore implements com.hazelcast.spi.hotrestart.RamStore
cacheInfo, cacheRecordProcessor, memoryManager, serializationServicebatchEvent, cacheConfig, cacheContext, cacheLoader, cacheRecordFactory, cacheService, cacheWriter, clearExpiredRecordsTask, DEFAULT_INITIAL_CAPACITY, defaultExpiryPolicy, disablePerEntryInvalidationEvents, eventJournalConfig, eventsBatchingEnabled, eventsEnabled, evictionChecker, evictionConfig, evictionPolicyEvaluator, evictionStrategy, expirationIterator, expiredKeys, hasEntryWithExpiration, name, nodeEngine, objectNamespace, partitionCount, partitionId, persistWanReplicatedData, primary, records, SOURCE_NOT_AVAILABLE, ss, statistics, valueComparator, wanReplicationEnabledSYSTEM_PROPERTY_NAME_TO_DISABLE_INVALID_MAX_SIZE_POLICY_EXCEPTIONDEFAULT_FORCED_EVICTION_PERCENTAGE, FORCE_EVICTION_TRY_COUNT, HUNDRED_PERCENT, NULL_PTR| Constructor and Description |
|---|
HotRestartHiDensityNativeMemoryCacheRecordStore(int partitionId,
String cacheNameWithPrefix,
EnterpriseCacheService cacheService,
com.hazelcast.spi.NodeEngine nodeEngine,
boolean fsync,
long keyPrefix) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(com.hazelcast.spi.hotrestart.KeyHandle kh,
byte[] valueBytes) |
void |
close(boolean onShutdown) |
boolean |
copyEntry(com.hazelcast.spi.hotrestart.KeyHandle keyHandle,
int expectedSize,
com.hazelcast.spi.hotrestart.RecordDataSink sink) |
protected com.hazelcast.internal.eviction.EvictionChecker |
createCacheEvictionChecker(int size,
com.hazelcast.config.EvictionConfig.MaxSizePolicy maxSizePolicy)
Creates an instance for checking if the maximum cache size has been reached.
|
protected HiDensityNativeMemoryCacheRecordMap |
createMapInternal(int capacity) |
void |
disposeDeferredBlocks()
Used to release HD memory.
|
protected HiDensityNativeMemoryCacheRecord |
doPutRecord(com.hazelcast.nio.serialization.Data key,
HiDensityNativeMemoryCacheRecord record,
String source,
boolean updateJournal) |
protected HiDensityNativeMemoryCacheRecord |
doRemoveRecord(com.hazelcast.nio.serialization.Data key,
String source) |
protected void |
onOwn(com.hazelcast.nio.serialization.Data key,
Object value,
long ttlMillis,
HiDensityNativeMemoryCacheRecord record,
NativeMemoryData oldValueData,
boolean isNewPut,
boolean disableDeferredDispose) |
protected void |
onUpdateRecord(com.hazelcast.nio.serialization.Data key,
HiDensityNativeMemoryCacheRecord record,
Object value,
com.hazelcast.nio.serialization.Data oldDataValue) |
void |
removeNullEntries(com.hazelcast.spi.hotrestart.impl.SetOfKeyHandle keyHandles) |
com.hazelcast.cache.impl.record.CacheRecord |
removeRecord(com.hazelcast.nio.serialization.Data key) |
void |
reset() |
com.hazelcast.spi.hotrestart.KeyHandleOffHeap |
toKeyHandle(byte[] keyBytes) |
protected void |
updateRecordValue(HiDensityNativeMemoryCacheRecord record,
Object recordValue) |
clear, createCacheEntryProcessorEntry, createRecord, createRecordCacheMap, dataToValue, destroy, evictExpiredEntries, evictIfExpired, forceEvict, forceRemoveRecord, getRecordProcessor, getRecordValue, getValueComparatorOf, initExpirationIterator, iterator, merge, merge, onCreateRecordError, onDeleteRecord, onDestroy, onOwnError, onProcessExpiredEntry, onPut, onPutIfAbsent, onRemoveError, onReplace, onUpdateExpiryPolicy, onUpdateExpiryPolicyError, onUpdateRecordError, putBackup, putIfAbsent, putRecord, putReplica, recordToData, recordToValue, replace, replace, toData, toHeapCacheRecord, toHeapData, valueToDataaccessRecord, accumulateOrSendExpiredKeysToBackup, closeListeners, compare, contains, createEvictionPolicyEvaluator, createEvictionStrategy, createRecord, createRecord, createRecord, createRecord, createRecordWithExpiry, createRecordWithExpiry, createRecordWithExpiry, createRecordWithExpiry, deleteAllCacheEntry, deleteCacheEntry, deleteCacheEntry, deleteRecord, deleteRecord, deleteRecord, destroyEventJournal, destroyInternals, evictIfRequired, extractExpiryPolicyOfRecord, fetchEntries, fetchKeys, get, getAll, getAndPut, getAndRemove, getAndRemove, getAndReplace, getCacheStats, getConfig, getExpiredKeysQueue, getExpiryPolicy, getExpiryPolicy, getName, getObjectNamespace, getPartitionId, getReadOnlyRecords, getRecord, init, instrument, invalidateEntry, invalidateEntry, invoke, isEventsEnabled, isEvictionEnabled, isExpirable, isInvalidationEnabled, isReadThrough, isStatisticsEnabled, isWanReplicationEnabled, isWriteThrough, loadAll, loadAllCacheEntry, markExpirable, onEvict, onGet, onGetError, onPutError, onPutIfAbsentError, onRecordAccess, onRemove, onReplaceError, processExpiredEntry, processExpiredEntry, processExpiredEntry, processExpiredEntry, processExpiredEntry, publishBatchedEvents, publishEvent, put, put, put, putIfAbsent, putIfAbsent, readThroughCache, readThroughRecord, remove, remove, remove, removeAll, replace, replace, sampleAndForceRemoveEntries, setExpiryPolicy, size, toEventData, toStorageValue, toValue, updateAccessDuration, updateExpiryPolicyOfRecord, updateGetAndPutStat, updateRecord, updateRecord, updateRecordWithExpiry, updateRecordWithExpiry, updateRecordWithExpiry, updateRecordWithExpiry, updateRecordWithExpiry, updateRecordWithExpiry, updateRecordWithExpiry, updateReplaceStat, writeThroughCacheclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoEventDatacontains, destroyInternals, evictIfRequired, fetchEntries, fetchKeys, get, getAll, getAndPut, getAndRemove, getAndReplace, getCacheStats, getConfig, getExpiredKeysQueue, getExpiryPolicy, getName, getObjectNamespace, getPartitionId, getReadOnlyRecords, getRecord, init, invoke, isExpirable, isWanReplicationEnabled, loadAll, put, putIfAbsent, remove, remove, remove, removeAll, replace, replace, sampleAndForceRemoveEntries, setExpiryPolicy, sizepublic HotRestartHiDensityNativeMemoryCacheRecordStore(int partitionId,
String cacheNameWithPrefix,
EnterpriseCacheService cacheService,
com.hazelcast.spi.NodeEngine nodeEngine,
boolean fsync,
long keyPrefix)
protected HiDensityNativeMemoryCacheRecordMap createMapInternal(int capacity)
createMapInternal in class HiDensityNativeMemoryCacheRecordStoreprotected com.hazelcast.internal.eviction.EvictionChecker createCacheEvictionChecker(int size,
com.hazelcast.config.EvictionConfig.MaxSizePolicy maxSizePolicy)
HiDensityNativeMemoryCacheRecordStoreEvictionConfig.MaxSizePolicy.USED_NATIVE_MEMORY_SIZEEvictionConfig.MaxSizePolicy.USED_NATIVE_MEMORY_PERCENTAGEEvictionConfig.MaxSizePolicy.FREE_NATIVE_MEMORY_SIZEEvictionConfig.MaxSizePolicy.FREE_NATIVE_MEMORY_PERCENTAGE
If the maxSizePolicy parameter is null or the policy is not supported, returns null if the
HiDensityCacheRecordStore.SYSTEM_PROPERTY_NAME_TO_DISABLE_INVALID_MAX_SIZE_POLICY_EXCEPTION system property is true, else throws an
IllegalArgumentException.
createCacheEvictionChecker in class HiDensityNativeMemoryCacheRecordStoresize - the maximum sizemaxSizePolicy - the way in which the size is interpreted based on the supported policiesmaxSizePolicy is null or not supported and the
HiDensityCacheRecordStore.SYSTEM_PROPERTY_NAME_TO_DISABLE_INVALID_MAX_SIZE_POLICY_EXCEPTION system property is trueprotected HiDensityNativeMemoryCacheRecord doPutRecord(com.hazelcast.nio.serialization.Data key, HiDensityNativeMemoryCacheRecord record, String source, boolean updateJournal)
doPutRecord in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>protected void updateRecordValue(HiDensityNativeMemoryCacheRecord record, Object recordValue)
updateRecordValue in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>protected void onUpdateRecord(com.hazelcast.nio.serialization.Data key,
HiDensityNativeMemoryCacheRecord record,
Object value,
com.hazelcast.nio.serialization.Data oldDataValue)
onUpdateRecord in class HiDensityNativeMemoryCacheRecordStorepublic com.hazelcast.cache.impl.record.CacheRecord removeRecord(com.hazelcast.nio.serialization.Data key)
removeRecord in interface com.hazelcast.cache.impl.ICacheRecordStoreremoveRecord in class HiDensityNativeMemoryCacheRecordStoreprotected HiDensityNativeMemoryCacheRecord doRemoveRecord(com.hazelcast.nio.serialization.Data key, String source)
doRemoveRecord in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>protected void onOwn(com.hazelcast.nio.serialization.Data key,
Object value,
long ttlMillis,
HiDensityNativeMemoryCacheRecord record,
NativeMemoryData oldValueData,
boolean isNewPut,
boolean disableDeferredDispose)
onOwn in class HiDensityNativeMemoryCacheRecordStorepublic void disposeDeferredBlocks()
HiDensityCacheRecordStoredisposeDeferredBlocks in interface HiDensityCacheRecordStore<HiDensityNativeMemoryCacheRecord>disposeDeferredBlocks in interface com.hazelcast.cache.impl.ICacheRecordStoredisposeDeferredBlocks in class HiDensityNativeMemoryCacheRecordStorepublic boolean copyEntry(com.hazelcast.spi.hotrestart.KeyHandle keyHandle,
int expectedSize,
com.hazelcast.spi.hotrestart.RecordDataSink sink)
copyEntry in interface com.hazelcast.spi.hotrestart.RamStorepublic com.hazelcast.spi.hotrestart.KeyHandleOffHeap toKeyHandle(byte[] keyBytes)
toKeyHandle in interface com.hazelcast.spi.hotrestart.RamStorepublic void accept(com.hazelcast.spi.hotrestart.KeyHandle kh,
byte[] valueBytes)
accept in interface com.hazelcast.spi.hotrestart.RamStorepublic void removeNullEntries(com.hazelcast.spi.hotrestart.impl.SetOfKeyHandle keyHandles)
removeNullEntries in interface com.hazelcast.spi.hotrestart.RamStorepublic void reset()
reset in interface com.hazelcast.cache.impl.ICacheRecordStorereset in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>public void close(boolean onShutdown)
close in interface com.hazelcast.cache.impl.ICacheRecordStoreclose in class HiDensityNativeMemoryCacheRecordStoreCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.