public class HiDensityNativeMemoryCacheRecordStore extends com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap> implements HiDensityCacheRecordStore<HiDensityNativeMemoryCacheRecord>
| Modifier and Type | Field and Description |
|---|---|
protected HiDensityStorageInfo |
cacheInfo |
protected HiDensityRecordProcessor<HiDensityNativeMemoryCacheRecord> |
cacheRecordProcessor |
protected com.hazelcast.memory.HazelcastMemoryManager |
memoryManager |
protected EnterpriseSerializationService |
serializationService |
batchEvent, 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 |
|---|
HiDensityNativeMemoryCacheRecordStore(int partitionId,
String cacheNameWithPrefix,
EnterpriseCacheService cacheService,
com.hazelcast.spi.NodeEngine nodeEngine) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
close(boolean onShutdown) |
protected com.hazelcast.cache.impl.CacheEntryProcessorEntry |
createCacheEntryProcessorEntry(com.hazelcast.nio.serialization.Data key,
HiDensityNativeMemoryCacheRecord record,
long now,
int completionId) |
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) |
protected HiDensityNativeMemoryCacheRecord |
createRecord(Object value,
long creationTime,
long expiryTime) |
protected HiDensityNativeMemoryCacheRecordMap |
createRecordCacheMap() |
protected Object |
dataToValue(com.hazelcast.nio.serialization.Data data) |
void |
destroy() |
void |
disposeDeferredBlocks()
Used to release HD memory.
|
void |
evictExpiredEntries(int expirationPercentage) |
protected boolean |
evictIfExpired(com.hazelcast.nio.serialization.Data key,
HiDensityNativeMemoryCacheRecord record,
long now) |
int |
forceEvict()
Forcefully evict records.
|
protected void |
forceRemoveRecord(com.hazelcast.nio.serialization.Data key) |
HiDensityRecordProcessor<HiDensityNativeMemoryCacheRecord> |
getRecordProcessor()
Gets the
HiDensityRecordProcessor
which is used by this HiDensityCacheRecordStore. |
Object |
getRecordValue(HiDensityNativeMemoryCacheRecord record)
Gets the value of specified record.
|
protected com.hazelcast.internal.util.comparators.ValueComparator |
getValueComparatorOf(com.hazelcast.config.InMemoryFormat inMemoryFormat) |
protected void |
initExpirationIterator() |
com.hazelcast.elastic.SlottableIterator<Map.Entry<com.hazelcast.nio.serialization.Data,HiDensityNativeMemoryCacheRecord>> |
iterator(int slot)
Returns a slottable iterator for this
HiDensityCacheRecordStore to iterate over records. |
com.hazelcast.cache.impl.record.CacheRecord |
merge(com.hazelcast.cache.CacheEntryView<com.hazelcast.nio.serialization.Data,com.hazelcast.nio.serialization.Data> cacheEntryView,
com.hazelcast.cache.CacheMergePolicy mergePolicy,
String caller,
String origin,
int completionId,
com.hazelcast.wan.impl.CallerProvenance callerProvenance) |
com.hazelcast.cache.impl.record.CacheRecord |
merge(com.hazelcast.spi.merge.SplitBrainMergeTypes.CacheMergeTypes mergingEntry,
com.hazelcast.spi.merge.SplitBrainMergePolicy<com.hazelcast.nio.serialization.Data,com.hazelcast.spi.merge.SplitBrainMergeTypes.CacheMergeTypes> mergePolicy,
com.hazelcast.wan.impl.CallerProvenance callerProvenance) |
protected void |
onCreateRecordError(com.hazelcast.nio.serialization.Data key,
Object value,
long expiryTime,
long now,
boolean disableWriteThrough,
int completionId,
String origin,
HiDensityNativeMemoryCacheRecord record,
Throwable error) |
protected void |
onDeleteRecord(com.hazelcast.nio.serialization.Data key,
HiDensityNativeMemoryCacheRecord record,
boolean deleted) |
protected void |
onDestroy() |
protected void |
onOwn(com.hazelcast.nio.serialization.Data key,
Object value,
long ttlMillis,
HiDensityNativeMemoryCacheRecord record,
NativeMemoryData oldValueData,
boolean isNewPut,
boolean disableDeferredDispose) |
protected void |
onOwnError(com.hazelcast.nio.serialization.Data key,
Object value,
long ttlMillis,
HiDensityNativeMemoryCacheRecord record,
NativeMemoryData oldValueData,
boolean isNewPut,
boolean disableDeferredDispose,
Throwable error) |
protected void |
onProcessExpiredEntry(com.hazelcast.nio.serialization.Data key,
HiDensityNativeMemoryCacheRecord record,
long expiryTime,
long now,
String source,
String origin) |
protected void |
onPut(com.hazelcast.nio.serialization.Data key,
Object value,
javax.cache.expiry.ExpiryPolicy expiryPolicy,
String caller,
boolean getValue,
boolean disableWriteThrough,
HiDensityNativeMemoryCacheRecord record,
Object oldValue,
boolean isExpired,
boolean isNewPut,
boolean isSaveSucceed) |
protected void |
onPutIfAbsent(com.hazelcast.nio.serialization.Data key,
Object value,
javax.cache.expiry.ExpiryPolicy expiryPolicy,
String caller,
boolean disableWriteThrough,
HiDensityNativeMemoryCacheRecord record,
boolean isExpired,
boolean isSaveSucceed) |
protected void |
onRemoveError(com.hazelcast.nio.serialization.Data key,
Object value,
String caller,
boolean getValue,
HiDensityNativeMemoryCacheRecord record,
boolean removed,
Throwable error) |
protected void |
onReplace(com.hazelcast.nio.serialization.Data key,
Object oldValue,
Object newValue,
javax.cache.expiry.ExpiryPolicy expiryPolicy,
String caller,
boolean getValue,
HiDensityNativeMemoryCacheRecord record,
boolean isExpired,
boolean replaced) |
protected void |
onUpdateExpiryPolicy(com.hazelcast.nio.serialization.Data key,
HiDensityNativeMemoryCacheRecord record,
com.hazelcast.nio.serialization.Data oldDataExpiryPolicy) |
protected void |
onUpdateExpiryPolicyError(com.hazelcast.nio.serialization.Data key,
HiDensityNativeMemoryCacheRecord record,
com.hazelcast.nio.serialization.Data oldDataExpiryPolicy) |
protected void |
onUpdateRecord(com.hazelcast.nio.serialization.Data key,
HiDensityNativeMemoryCacheRecord record,
Object value,
com.hazelcast.nio.serialization.Data oldDataValue) |
protected void |
onUpdateRecordError(com.hazelcast.nio.serialization.Data key,
HiDensityNativeMemoryCacheRecord record,
Object value,
com.hazelcast.nio.serialization.Data newDataValue,
com.hazelcast.nio.serialization.Data oldDataValue,
Throwable error) |
com.hazelcast.cache.impl.record.CacheRecord |
putBackup(com.hazelcast.nio.serialization.Data key,
Object value,
long creationTime,
javax.cache.expiry.ExpiryPolicy expiryPolicy)
Puts and saves (replaces if exist) the backup
value with the specified key
to this HiDensityCacheRecordStore. |
boolean |
putIfAbsent(com.hazelcast.nio.serialization.Data key,
Object value,
String caller,
int completionId)
Puts the
value with the specified key
to this HiDensityCacheRecordStore if there is no value with the same key. |
void |
putRecord(com.hazelcast.nio.serialization.Data key,
com.hazelcast.cache.impl.record.CacheRecord record,
boolean updateJournal) |
com.hazelcast.cache.impl.record.CacheRecord |
putReplica(com.hazelcast.nio.serialization.Data key,
Object value,
long creationTime,
long ttlMillis)
Puts and saves (replaces if exist) the replicated
value with the specified key
to this HiDensityCacheRecordStore. |
protected com.hazelcast.nio.serialization.Data |
recordToData(HiDensityNativeMemoryCacheRecord record) |
protected Object |
recordToValue(HiDensityNativeMemoryCacheRecord record) |
com.hazelcast.cache.impl.record.CacheRecord |
removeRecord(com.hazelcast.nio.serialization.Data key) |
boolean |
replace(com.hazelcast.nio.serialization.Data key,
Object oldValue,
Object newValue,
String caller,
int completionId)
Replaces the already stored value with the new
value
mapped by the specified key to this HiDensityCacheRecordStore
if there is a value with the specified key and equals to specified value. |
boolean |
replace(com.hazelcast.nio.serialization.Data key,
Object value,
String caller,
int completionId)
Replaces the already stored value with the new
value
mapped by the specified key to this HiDensityCacheRecordStore
if there is a value with the specified key. |
protected com.hazelcast.nio.serialization.Data |
toData(Object obj) |
com.hazelcast.cache.impl.record.CacheRecord |
toHeapCacheRecord(HiDensityNativeMemoryCacheRecord record)
Converts given
HiDensityCacheRecord to heap based CacheRecord. |
protected com.hazelcast.nio.serialization.Data |
toHeapData(Object obj) |
protected com.hazelcast.nio.serialization.Data |
valueToData(Object value) |
accessRecord, accumulateOrSendExpiredKeysToBackup, closeListeners, compare, contains, createEvictionPolicyEvaluator, createEvictionStrategy, createRecord, createRecord, createRecord, createRecord, createRecordWithExpiry, createRecordWithExpiry, createRecordWithExpiry, createRecordWithExpiry, deleteAllCacheEntry, deleteCacheEntry, deleteCacheEntry, deleteRecord, deleteRecord, deleteRecord, destroyEventJournal, destroyInternals, doPutRecord, doRemoveRecord, 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, reset, sampleAndForceRemoveEntries, setExpiryPolicy, size, toEventData, toStorageValue, toValue, updateAccessDuration, updateExpiryPolicyOfRecord, updateGetAndPutStat, updateRecord, updateRecord, updateRecordValue, 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, reset, sampleAndForceRemoveEntries, setExpiryPolicy, sizeprotected HiDensityStorageInfo cacheInfo
protected com.hazelcast.memory.HazelcastMemoryManager memoryManager
protected EnterpriseSerializationService serializationService
protected HiDensityRecordProcessor<HiDensityNativeMemoryCacheRecord> cacheRecordProcessor
public HiDensityNativeMemoryCacheRecordStore(int partitionId,
String cacheNameWithPrefix,
EnterpriseCacheService cacheService,
com.hazelcast.spi.NodeEngine nodeEngine)
protected com.hazelcast.internal.util.comparators.ValueComparator getValueComparatorOf(com.hazelcast.config.InMemoryFormat inMemoryFormat)
getValueComparatorOf in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>protected com.hazelcast.internal.eviction.EvictionChecker createCacheEvictionChecker(int size,
com.hazelcast.config.EvictionConfig.MaxSizePolicy maxSizePolicy)
EvictionConfig.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 com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>size - 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 trueIllegalArgumentException - if the maxSizePolicy is null or not supported and the
HiDensityCacheRecordStore.SYSTEM_PROPERTY_NAME_TO_DISABLE_INVALID_MAX_SIZE_POLICY_EXCEPTION system
property is falseprotected void forceRemoveRecord(com.hazelcast.nio.serialization.Data key)
forceRemoveRecord in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>protected HiDensityNativeMemoryCacheRecordMap createRecordCacheMap()
createRecordCacheMap in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>protected HiDensityNativeMemoryCacheRecordMap createMapInternal(int capacity)
protected com.hazelcast.cache.impl.CacheEntryProcessorEntry createCacheEntryProcessorEntry(com.hazelcast.nio.serialization.Data key,
HiDensityNativeMemoryCacheRecord record,
long now,
int completionId)
createCacheEntryProcessorEntry in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>protected com.hazelcast.nio.serialization.Data valueToData(Object value)
valueToData in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>protected Object dataToValue(com.hazelcast.nio.serialization.Data data)
dataToValue in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>protected Object recordToValue(HiDensityNativeMemoryCacheRecord record)
recordToValue in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>protected com.hazelcast.nio.serialization.Data recordToData(HiDensityNativeMemoryCacheRecord record)
recordToData in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>protected com.hazelcast.nio.serialization.Data toData(Object obj)
toData in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>protected com.hazelcast.nio.serialization.Data toHeapData(Object obj)
toHeapData in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>public com.hazelcast.cache.impl.record.CacheRecord merge(com.hazelcast.spi.merge.SplitBrainMergeTypes.CacheMergeTypes mergingEntry,
com.hazelcast.spi.merge.SplitBrainMergePolicy<com.hazelcast.nio.serialization.Data,com.hazelcast.spi.merge.SplitBrainMergeTypes.CacheMergeTypes> mergePolicy,
com.hazelcast.wan.impl.CallerProvenance callerProvenance)
merge in interface com.hazelcast.cache.impl.ICacheRecordStoremerge in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>public com.hazelcast.cache.impl.record.CacheRecord merge(com.hazelcast.cache.CacheEntryView<com.hazelcast.nio.serialization.Data,com.hazelcast.nio.serialization.Data> cacheEntryView,
com.hazelcast.cache.CacheMergePolicy mergePolicy,
String caller,
String origin,
int completionId,
com.hazelcast.wan.impl.CallerProvenance callerProvenance)
merge in interface com.hazelcast.cache.impl.ICacheRecordStoremerge in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>public final com.hazelcast.cache.impl.record.CacheRecord toHeapCacheRecord(HiDensityNativeMemoryCacheRecord record)
HiDensityCacheRecordStoreHiDensityCacheRecord to heap based CacheRecord.toHeapCacheRecord in interface HiDensityCacheRecordStore<HiDensityNativeMemoryCacheRecord>record - the HiDensityCacheRecord to be converted to heap based CacheRecordCacheRecord converted from the given HiDensityCacheRecordpublic void disposeDeferredBlocks()
HiDensityCacheRecordStoredisposeDeferredBlocks in interface HiDensityCacheRecordStore<HiDensityNativeMemoryCacheRecord>disposeDeferredBlocks in interface com.hazelcast.cache.impl.ICacheRecordStorepublic Object getRecordValue(HiDensityNativeMemoryCacheRecord record)
HiDensityCacheRecordStoregetRecordValue in interface HiDensityCacheRecordStore<HiDensityNativeMemoryCacheRecord>record - the record whose value is extractedpublic com.hazelcast.elastic.SlottableIterator<Map.Entry<com.hazelcast.nio.serialization.Data,HiDensityNativeMemoryCacheRecord>> iterator(int slot)
HiDensityCacheRecordStoreHiDensityCacheRecordStore to iterate over records.iterator in interface HiDensityCacheRecordStore<HiDensityNativeMemoryCacheRecord>slot - the slot number (or index) to start the iteratorslotpublic HiDensityRecordProcessor<HiDensityNativeMemoryCacheRecord> getRecordProcessor()
HiDensityCacheRecordStoreHiDensityRecordProcessor
which is used by this HiDensityCacheRecordStore.getRecordProcessor in interface HiDensityCacheRecordStore<HiDensityNativeMemoryCacheRecord>protected HiDensityNativeMemoryCacheRecord createRecord(Object value, long creationTime, long expiryTime)
createRecord in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>protected void initExpirationIterator()
initExpirationIterator in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>protected void onCreateRecordError(com.hazelcast.nio.serialization.Data key,
Object value,
long expiryTime,
long now,
boolean disableWriteThrough,
int completionId,
String origin,
HiDensityNativeMemoryCacheRecord record,
Throwable error)
onCreateRecordError in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>protected boolean evictIfExpired(com.hazelcast.nio.serialization.Data key,
HiDensityNativeMemoryCacheRecord record,
long now)
evictIfExpired in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>public void evictExpiredEntries(int expirationPercentage)
evictExpiredEntries in interface com.hazelcast.cache.impl.ICacheRecordStoreevictExpiredEntries in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>protected void onProcessExpiredEntry(com.hazelcast.nio.serialization.Data key,
HiDensityNativeMemoryCacheRecord record,
long expiryTime,
long now,
String source,
String origin)
onProcessExpiredEntry 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 com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>protected void onUpdateRecordError(com.hazelcast.nio.serialization.Data key,
HiDensityNativeMemoryCacheRecord record,
Object value,
com.hazelcast.nio.serialization.Data newDataValue,
com.hazelcast.nio.serialization.Data oldDataValue,
Throwable error)
onUpdateRecordError in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>protected void onDeleteRecord(com.hazelcast.nio.serialization.Data key,
HiDensityNativeMemoryCacheRecord record,
boolean deleted)
onDeleteRecord in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>protected void onUpdateExpiryPolicy(com.hazelcast.nio.serialization.Data key,
HiDensityNativeMemoryCacheRecord record,
com.hazelcast.nio.serialization.Data oldDataExpiryPolicy)
onUpdateExpiryPolicy in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>protected void onUpdateExpiryPolicyError(com.hazelcast.nio.serialization.Data key,
HiDensityNativeMemoryCacheRecord record,
com.hazelcast.nio.serialization.Data oldDataExpiryPolicy)
onUpdateExpiryPolicyError in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>public void putRecord(com.hazelcast.nio.serialization.Data key,
com.hazelcast.cache.impl.record.CacheRecord record,
boolean updateJournal)
putRecord in interface com.hazelcast.cache.impl.ICacheRecordStoreputRecord in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>public com.hazelcast.cache.impl.record.CacheRecord removeRecord(com.hazelcast.nio.serialization.Data key)
removeRecord in interface com.hazelcast.cache.impl.ICacheRecordStoreremoveRecord in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>protected void onPut(com.hazelcast.nio.serialization.Data key,
Object value,
javax.cache.expiry.ExpiryPolicy expiryPolicy,
String caller,
boolean getValue,
boolean disableWriteThrough,
HiDensityNativeMemoryCacheRecord record,
Object oldValue,
boolean isExpired,
boolean isNewPut,
boolean isSaveSucceed)
onPut 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)
protected void onOwnError(com.hazelcast.nio.serialization.Data key,
Object value,
long ttlMillis,
HiDensityNativeMemoryCacheRecord record,
NativeMemoryData oldValueData,
boolean isNewPut,
boolean disableDeferredDispose,
Throwable error)
public com.hazelcast.cache.impl.record.CacheRecord putBackup(com.hazelcast.nio.serialization.Data key,
Object value,
long creationTime,
javax.cache.expiry.ExpiryPolicy expiryPolicy)
HiDensityCacheRecordStorevalue with the specified key
to this HiDensityCacheRecordStore.putBackup in interface HiDensityCacheRecordStore<HiDensityNativeMemoryCacheRecord>key - the key of the value to be ownedvalue - the value to be ownedexpiryPolicy - expiry policy of the owned valuepublic com.hazelcast.cache.impl.record.CacheRecord putReplica(com.hazelcast.nio.serialization.Data key,
Object value,
long creationTime,
long ttlMillis)
HiDensityCacheRecordStorevalue with the specified key
to this HiDensityCacheRecordStore.putReplica in interface HiDensityCacheRecordStore<HiDensityNativeMemoryCacheRecord>key - the key of the value to be ownedvalue - the value to be ownedttlMillis - the TTL value in milliseconds for the owned valueprotected void onPutIfAbsent(com.hazelcast.nio.serialization.Data key,
Object value,
javax.cache.expiry.ExpiryPolicy expiryPolicy,
String caller,
boolean disableWriteThrough,
HiDensityNativeMemoryCacheRecord record,
boolean isExpired,
boolean isSaveSucceed)
onPutIfAbsent in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>public boolean putIfAbsent(com.hazelcast.nio.serialization.Data key,
Object value,
String caller,
int completionId)
HiDensityCacheRecordStorevalue with the specified key
to this HiDensityCacheRecordStore if there is no value with the same key.putIfAbsent in interface HiDensityCacheRecordStore<HiDensityNativeMemoryCacheRecord>key - the key of the value to be putvalue - the value to be putcaller - the ID which represents the callertrue if the value has been put to the record store,
otherwise falseprotected void onReplace(com.hazelcast.nio.serialization.Data key,
Object oldValue,
Object newValue,
javax.cache.expiry.ExpiryPolicy expiryPolicy,
String caller,
boolean getValue,
HiDensityNativeMemoryCacheRecord record,
boolean isExpired,
boolean replaced)
onReplace in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>public boolean replace(com.hazelcast.nio.serialization.Data key,
Object value,
String caller,
int completionId)
HiDensityCacheRecordStorevalue
mapped by the specified key to this HiDensityCacheRecordStore
if there is a value with the specified key.replace in interface HiDensityCacheRecordStore<HiDensityNativeMemoryCacheRecord>key - the key of the value to be putvalue - the value to be putcaller - the ID which represents the callertrue if the value has been replaced with the specified value,
otherwise falsepublic boolean replace(com.hazelcast.nio.serialization.Data key,
Object oldValue,
Object newValue,
String caller,
int completionId)
HiDensityCacheRecordStorevalue
mapped by the specified key to this HiDensityCacheRecordStore
if there is a value with the specified key and equals to specified value.replace in interface HiDensityCacheRecordStore<HiDensityNativeMemoryCacheRecord>key - the key of the value to be putoldValue - the expected value of the record for the specified keynewValue - the new value to be putcaller - the ID which represents the callertrue if the value has been replaced with the specified value,
otherwise falseprotected void onRemoveError(com.hazelcast.nio.serialization.Data key,
Object value,
String caller,
boolean getValue,
HiDensityNativeMemoryCacheRecord record,
boolean removed,
Throwable error)
onRemoveError in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>public int forceEvict()
HiDensityRecordStoreforceEvict in interface HiDensityRecordStore<HiDensityNativeMemoryCacheRecord>public void clear()
clear in interface com.hazelcast.cache.impl.ICacheRecordStoreclear in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>public void close(boolean onShutdown)
close in interface com.hazelcast.cache.impl.ICacheRecordStoreclose in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>protected void onDestroy()
onDestroy in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>public void destroy()
destroy in interface com.hazelcast.cache.impl.ICacheRecordStoredestroy in class com.hazelcast.cache.impl.AbstractCacheRecordStore<HiDensityNativeMemoryCacheRecord,HiDensityNativeMemoryCacheRecordMap>Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.