public class HotRestartHDStorageImpl extends HotRestartStorageImpl<HDRecord> implements ForcedEvictable<HDRecord>
InMemoryFormat.NATIVEfsync, hotRestartStore, mapServiceContext, prefix, storage| Constructor and Description |
|---|
HotRestartHDStorageImpl(EnterpriseMapServiceContext mapServiceContext,
com.hazelcast.map.impl.record.RecordFactory recordFactory,
com.hazelcast.config.InMemoryFormat inMemoryFormat,
boolean fsync,
long prefix,
int partitionId) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(boolean isDuringShutdown) |
com.hazelcast.spi.hotrestart.HotRestartKey |
createHotRestartKey(HDRecord record) |
com.hazelcast.map.impl.recordstore.Storage |
createStorage(com.hazelcast.map.impl.record.RecordFactory recordFactory,
com.hazelcast.config.InMemoryFormat inMemoryFormat) |
void |
destroy(boolean isDuringShutdown) |
void |
disposeDeferredBlocks() |
com.hazelcast.spi.hotrestart.HotRestartStore |
getHotRestartStore(int partitionId) |
Object |
getMutex() |
long |
getNativeKeyAddress(com.hazelcast.nio.serialization.Data key) |
HDStorageImpl |
getStorageImpl() |
Iterator<HDRecord> |
newForcedEvictionValuesIterator()
Return iterator to be used for forced evictions.
|
void |
put(com.hazelcast.nio.serialization.Data key,
HDRecord record) |
void |
removeRecord(HDRecord record) |
NativeMemoryData |
toNative(com.hazelcast.nio.serialization.Data data) |
void |
updateRecordValue(com.hazelcast.nio.serialization.Data key,
HDRecord record,
Object val) |
containsKey, extractRecordFromLazy, fetchEntries, fetchKeys, get, getEntryCostEstimator, getIfSameKey, getRandomSamples, isEmpty, mutationTolerantIterator, putToHotRestart, putTransient, removeTransient, setEntryCostEstimator, size, updateTransient, valuespublic HotRestartHDStorageImpl(EnterpriseMapServiceContext mapServiceContext, com.hazelcast.map.impl.record.RecordFactory recordFactory, com.hazelcast.config.InMemoryFormat inMemoryFormat, boolean fsync, long prefix, int partitionId)
public com.hazelcast.spi.hotrestart.HotRestartStore getHotRestartStore(int partitionId)
getHotRestartStore in class HotRestartStorageImpl<HDRecord>public com.hazelcast.map.impl.recordstore.Storage createStorage(com.hazelcast.map.impl.record.RecordFactory recordFactory,
com.hazelcast.config.InMemoryFormat inMemoryFormat)
createStorage in class HotRestartStorageImpl<HDRecord>public void put(com.hazelcast.nio.serialization.Data key,
HDRecord record)
put in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,HDRecord>put in class HotRestartStorageImpl<HDRecord>public void updateRecordValue(com.hazelcast.nio.serialization.Data key,
HDRecord record,
Object val)
updateRecordValue in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,HDRecord>updateRecordValue in class HotRestartStorageImpl<HDRecord>public void removeRecord(HDRecord record)
removeRecord in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,HDRecord>removeRecord in class HotRestartStorageImpl<HDRecord>public void clear(boolean isDuringShutdown)
clear in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,HDRecord>clear in class HotRestartStorageImpl<HDRecord>public void destroy(boolean isDuringShutdown)
destroy in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,HDRecord>destroy in class HotRestartStorageImpl<HDRecord>public void disposeDeferredBlocks()
disposeDeferredBlocks in interface com.hazelcast.map.impl.recordstore.Storage<com.hazelcast.nio.serialization.Data,HDRecord>disposeDeferredBlocks in class HotRestartStorageImpl<HDRecord>public com.hazelcast.spi.hotrestart.HotRestartKey createHotRestartKey(HDRecord record)
createHotRestartKey in class HotRestartStorageImpl<HDRecord>public long getNativeKeyAddress(com.hazelcast.nio.serialization.Data key)
public NativeMemoryData toNative(com.hazelcast.nio.serialization.Data data)
public HDStorageImpl getStorageImpl()
public Object getMutex()
public Iterator<HDRecord> newForcedEvictionValuesIterator()
ForcedEvictableIterator.remove()
method to remove a current record or a Storage.removeRecord(Object) - but it's only allowed to remove
a record the iterator is currently pointing to. No other modification of the underlying storage is
allowed while using this iterator.newForcedEvictionValuesIterator in interface ForcedEvictable<HDRecord>Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.