K
- the type of the key stored in Near CacheV
- the type of the value stored in Near Cachepublic class NearCacheDataRecordStore<K,V> extends BaseHeapNearCacheRecordStore<K,V,NearCacheDataRecord>
NearCacheRecordStore
implementation for Near Caches
with InMemoryFormat.BINARY
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 |
---|
NearCacheDataRecordStore(String name,
NearCacheConfig nearCacheConfig,
SerializationService serializationService,
ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
protected NearCacheDataRecord |
createRecord(V value) |
protected long |
getKeyStorageMemoryCost(K key) |
protected long |
getRecordStorageMemoryCost(NearCacheDataRecord record) |
protected void |
updateRecordValue(NearCacheDataRecord 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 NearCacheDataRecordStore(String name, NearCacheConfig nearCacheConfig, SerializationService serializationService, ClassLoader classLoader)
protected long getKeyStorageMemoryCost(K key)
getKeyStorageMemoryCost
in class AbstractNearCacheRecordStore<K,V,K,NearCacheDataRecord,HeapNearCacheRecordMap<K,NearCacheDataRecord>>
protected long getRecordStorageMemoryCost(NearCacheDataRecord record)
getRecordStorageMemoryCost
in class AbstractNearCacheRecordStore<K,V,K,NearCacheDataRecord,HeapNearCacheRecordMap<K,NearCacheDataRecord>>
protected NearCacheDataRecord createRecord(V value)
createRecord
in class AbstractNearCacheRecordStore<K,V,K,NearCacheDataRecord,HeapNearCacheRecordMap<K,NearCacheDataRecord>>
protected void updateRecordValue(NearCacheDataRecord record, V value)
updateRecordValue
in class AbstractNearCacheRecordStore<K,V,K,NearCacheDataRecord,HeapNearCacheRecordMap<K,NearCacheDataRecord>>
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.