R - Type of the cache record to be stored.public interface HiDensityCacheRecordStore<R extends HiDensityCacheRecord> extends HiDensityRecordStore<R>, com.hazelcast.cache.impl.ICacheRecordStore
HiDensityCacheRecordStore is the contract for Hi-Density specific cache record store operations.
This contract is sub-type of ICacheRecordStore and used by Hi-Density cache based operations.
This HiDensityCacheRecordStore mainly manages operations for
HiDensityCacheRecord like get, put, replace, remove, iterate, etc.
| Modifier and Type | Field and Description |
|---|---|
static String |
SYSTEM_PROPERTY_NAME_TO_DISABLE_INVALID_MAX_SIZE_POLICY_EXCEPTION
Constant for system property name for enabling/disabling throwing exception behavior
in the case of an invalid max-size policy configuration.
|
DEFAULT_FORCED_EVICTION_PERCENTAGE, FORCE_EVICTION_TRY_COUNT, HUNDRED_PERCENT, NULL_PTR| Modifier and Type | Method and Description |
|---|---|
void |
disposeDeferredBlocks()
Used to release HD memory.
|
HiDensityRecordProcessor<R> |
getRecordProcessor()
Gets the
HiDensityRecordProcessor
which is used by this HiDensityCacheRecordStore. |
Object |
getRecordValue(R record)
Gets the value of specified record.
|
com.hazelcast.elastic.SlottableIterator<Map.Entry<com.hazelcast.nio.serialization.Data,R>> |
iterator(int slot)
Returns a slottable iterator for this
HiDensityCacheRecordStore to iterate over records. |
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. |
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. |
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. |
com.hazelcast.nio.serialization.Data |
toEventData(Object obj)
Converts the given object to data to be sent inside event.
|
com.hazelcast.cache.impl.record.CacheRecord |
toHeapCacheRecord(R record)
Converts given
HiDensityCacheRecord to heap based CacheRecord. |
forceEvictclear, close, contains, destroy, destroyInternals, evictExpiredEntries, evictIfRequired, fetchEntries, fetchKeys, get, getAll, getAndPut, getAndRemove, getAndReplace, getCacheStats, getConfig, getExpiredKeysQueue, getExpiryPolicy, getName, getObjectNamespace, getPartitionId, getReadOnlyRecords, getRecord, init, invoke, isExpirable, isWanReplicationEnabled, loadAll, merge, merge, put, putIfAbsent, putRecord, remove, remove, remove, removeAll, removeRecord, replace, replace, reset, sampleAndForceRemoveEntries, setExpiryPolicy, sizestatic final String SYSTEM_PROPERTY_NAME_TO_DISABLE_INVALID_MAX_SIZE_POLICY_EXCEPTION
Object getRecordValue(R record)
record - the record whose value is extractedHiDensityRecordProcessor<R> getRecordProcessor()
HiDensityRecordProcessor
which is used by this HiDensityCacheRecordStore.com.hazelcast.cache.impl.record.CacheRecord putBackup(com.hazelcast.nio.serialization.Data key,
Object value,
long creationTime,
javax.cache.expiry.ExpiryPolicy expiryPolicy)
value with the specified key
to this HiDensityCacheRecordStore.key - the key of the value to be ownedvalue - the value to be ownedexpiryPolicy - expiry policy of the owned valuecom.hazelcast.cache.impl.record.CacheRecord putReplica(com.hazelcast.nio.serialization.Data key,
Object value,
long creationTime,
long ttlMillis)
value with the specified key
to this HiDensityCacheRecordStore.key - the key of the value to be ownedvalue - the value to be ownedttlMillis - the TTL value in milliseconds for the owned valueboolean putIfAbsent(com.hazelcast.nio.serialization.Data key,
Object value,
String caller,
int completionId)
value with the specified key
to this HiDensityCacheRecordStore if there is no value with the same key.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 falseboolean replace(com.hazelcast.nio.serialization.Data key,
Object value,
String caller,
int completionId)
value
mapped by the specified key to this HiDensityCacheRecordStore
if there is a value with the specified key.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 falseboolean replace(com.hazelcast.nio.serialization.Data key,
Object oldValue,
Object newValue,
String caller,
int completionId)
value
mapped by the specified key to this HiDensityCacheRecordStore
if there is a value with the specified key and equals to specified value.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 falsecom.hazelcast.elastic.SlottableIterator<Map.Entry<com.hazelcast.nio.serialization.Data,R>> iterator(int slot)
HiDensityCacheRecordStore to iterate over records.slot - the slot number (or index) to start the iteratorslotcom.hazelcast.nio.serialization.Data toEventData(Object obj)
obj - the object to be converted to data to be sent inside eventcom.hazelcast.cache.impl.record.CacheRecord toHeapCacheRecord(R record)
HiDensityCacheRecord to heap based CacheRecord.record - the HiDensityCacheRecord to be converted to heap based CacheRecordCacheRecord converted from the given HiDensityCacheRecordvoid disposeDeferredBlocks()
disposeDeferredBlocks in interface com.hazelcast.cache.impl.ICacheRecordStoreCopyright © 2021 Hazelcast, Inc.. All Rights Reserved.