K
- the type of the key stored in Near CacheV
- the type of the value stored in Near Cachepublic class NearCacheObjectRecordStore<K,V> extends BaseHeapNearCacheRecordStore<K,V,NearCacheObjectRecord<V>>
NearCacheRecordStore
implementation for Near Caches
with InMemoryFormat.OBJECT
in-memory-format.AbstractNearCacheRecordStore.ReserveForUpdateFunction
classLoader, evictionChecker, evictionDisabled, evictionPolicyEvaluator, evictionStrategy, inMemoryFormat, maxIdleMillis, MILLI_SECONDS_IN_A_SECOND, nearCacheConfig, nearCacheStats, records, REFERENCE_SIZE, RESERVATION_ID, reservationId, serializationService, staleReadDetector, timeToLiveMillis
NO_LISTENER
Constructor and Description |
---|
NearCacheObjectRecordStore(String name,
NearCacheConfig nearCacheConfig,
SerializationService serializationService,
ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
protected NearCacheObjectRecord<V> |
createRecord(V value) |
protected long |
getKeyStorageMemoryCost(K key) |
protected long |
getRecordStorageMemoryCost(NearCacheObjectRecord record) |
protected void |
updateRecordValue(NearCacheObjectRecord<V> record,
V value) |
containsRecordKey, createNearCacheEvictionChecker, createNearCacheRecordMap, destroy, doExpiration, getOrCreateToReserve, getRecord, invalidate, loadKeys, onEvict, putRecord, storeKeys, updateAndGetReserved
canUpdateStats, checkAvailable, clear, doEviction, get, getNearCacheStats, getStaleReadDetector, getTotalStorageMemoryCost, initialize, isRecordExpired, onExpire, onGet, onGetError, onPut, onPutError, onRecordCreate, onRemove, onRemoveError, put, recordToValue, setStaleReadDetector, size, toData, toValue, tryPublishReserved, tryReserveForUpdate, updateReservedRecordInternal
public NearCacheObjectRecordStore(String name, NearCacheConfig nearCacheConfig, SerializationService serializationService, ClassLoader classLoader)
protected long getKeyStorageMemoryCost(K key)
getKeyStorageMemoryCost
in class AbstractNearCacheRecordStore<K,V,K,NearCacheObjectRecord<V>,HeapNearCacheRecordMap<K,NearCacheObjectRecord<V>>>
protected long getRecordStorageMemoryCost(NearCacheObjectRecord record)
getRecordStorageMemoryCost
in class AbstractNearCacheRecordStore<K,V,K,NearCacheObjectRecord<V>,HeapNearCacheRecordMap<K,NearCacheObjectRecord<V>>>
protected NearCacheObjectRecord<V> createRecord(V value)
createRecord
in class AbstractNearCacheRecordStore<K,V,K,NearCacheObjectRecord<V>,HeapNearCacheRecordMap<K,NearCacheObjectRecord<V>>>
protected void updateRecordValue(NearCacheObjectRecord<V> record, V value)
updateRecordValue
in class AbstractNearCacheRecordStore<K,V,K,NearCacheObjectRecord<V>,HeapNearCacheRecordMap<K,NearCacheObjectRecord<V>>>
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.