K - the type of the key stored in Near CacheV - the type of the value stored in Near Cachepublic class SegmentedNativeMemoryNearCacheRecordStore<K,V> extends Object implements HiDensityNearCacheRecordStore<K,V,NativeMemoryNearCacheRecord>
HiDensityNearCacheRecordStore which improves performance by using multiple
NativeMemoryNearCacheRecordStore instances in parallel.DEFAULT_FORCED_EVICTION_PERCENTAGE, FORCE_EVICTION_TRY_COUNT, HUNDRED_PERCENT, NULL_PTR| Constructor and Description |
|---|
SegmentedNativeMemoryNearCacheRecordStore(String name,
com.hazelcast.config.NearCacheConfig nearCacheConfig,
EnterpriseSerializationService serializationService,
ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
destroy() |
void |
doEviction() |
void |
doEvictionIfRequired() |
void |
doExpiration() |
int |
forceEvict()
Forcefully evict records.
|
V |
get(K key) |
com.hazelcast.memory.HazelcastMemoryManager |
getMemoryManager()
Gets underlying
MemoryManager implementation. |
com.hazelcast.monitor.NearCacheStats |
getNearCacheStats() |
com.hazelcast.internal.nearcache.NearCacheRecord |
getRecord(K key) |
com.hazelcast.internal.nearcache.impl.invalidation.StaleReadDetector |
getStaleReadDetector() |
void |
initialize() |
void |
invalidate(K key) |
void |
loadKeys(com.hazelcast.internal.adapter.DataStructureAdapter<Object,?> adapter) |
void |
put(K key,
com.hazelcast.nio.serialization.Data keyData,
V value) |
Object |
selectToSave(Object... candidates) |
void |
setStaleReadDetector(com.hazelcast.internal.nearcache.impl.invalidation.StaleReadDetector staleReadDetector) |
int |
size() |
void |
storeKeys() |
V |
tryPublishReserved(K key,
V value,
long reservationId,
boolean deserialize) |
long |
tryReserveForUpdate(K key,
com.hazelcast.nio.serialization.Data keyData) |
public SegmentedNativeMemoryNearCacheRecordStore(String name, com.hazelcast.config.NearCacheConfig nearCacheConfig, EnterpriseSerializationService serializationService, ClassLoader classLoader)
public void initialize()
initialize in interface com.hazelcast.spi.InitializingObjectpublic com.hazelcast.internal.nearcache.NearCacheRecord getRecord(K key)
public void invalidate(K key)
public void clear()
public void destroy()
public com.hazelcast.monitor.NearCacheStats getNearCacheStats()
public int size()
public int forceEvict()
HiDensityRecordStoreforceEvict in interface HiDensityRecordStore<NativeMemoryNearCacheRecord>public void doExpiration()
public void doEvictionIfRequired()
public void doEviction()
public void loadKeys(com.hazelcast.internal.adapter.DataStructureAdapter<Object,?> adapter)
public void storeKeys()
public void setStaleReadDetector(com.hazelcast.internal.nearcache.impl.invalidation.StaleReadDetector staleReadDetector)
public com.hazelcast.internal.nearcache.impl.invalidation.StaleReadDetector getStaleReadDetector()
public long tryReserveForUpdate(K key, com.hazelcast.nio.serialization.Data keyData)
public V tryPublishReserved(K key, V value, long reservationId, boolean deserialize)
public com.hazelcast.memory.HazelcastMemoryManager getMemoryManager()
HiDensityNearCacheRecordStoreMemoryManager implementation.getMemoryManager in interface HiDensityNearCacheRecordStore<K,V,NativeMemoryNearCacheRecord>MemoryManager implementation.Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.