public final class RamStoreHelper extends Object
RamStore
implementations.| Modifier and Type | Method and Description |
|---|---|
static boolean |
copyEntry(com.hazelcast.spi.hotrestart.KeyHandleOffHeap keyHandleOffHeap,
NativeMemoryData key,
HiDensityRecord record,
int expectedSize,
com.hazelcast.spi.hotrestart.RecordDataSink sink)
Helper
RamStore.copyEntry(KeyHandle, int, RecordDataSink) method for off-heap based
RamStore implementations. |
static boolean |
copyEntry(com.hazelcast.spi.hotrestart.impl.KeyOnHeap keyHandle,
com.hazelcast.nio.serialization.Data value,
int expectedSize,
com.hazelcast.spi.hotrestart.RecordDataSink sink)
Helper
RamStore.copyEntry(KeyHandle, int, RecordDataSink) method for heap based
RamStore implementations. |
static NativeMemoryData |
validateAndGetKey(com.hazelcast.spi.hotrestart.KeyHandleOffHeap kh,
com.hazelcast.memory.HazelcastMemoryManager memoryManager)
Validates key handles address and returns a native key if validation is successful,
returns null otherwise.
|
public static boolean copyEntry(com.hazelcast.spi.hotrestart.impl.KeyOnHeap keyHandle,
com.hazelcast.nio.serialization.Data value,
int expectedSize,
com.hazelcast.spi.hotrestart.RecordDataSink sink)
RamStore.copyEntry(KeyHandle, int, RecordDataSink) method for heap based
RamStore implementations.public static boolean copyEntry(com.hazelcast.spi.hotrestart.KeyHandleOffHeap keyHandleOffHeap,
NativeMemoryData key,
HiDensityRecord record,
int expectedSize,
com.hazelcast.spi.hotrestart.RecordDataSink sink)
RamStore.copyEntry(KeyHandle, int, RecordDataSink) method for off-heap based
RamStore implementations.public static NativeMemoryData validateAndGetKey(com.hazelcast.spi.hotrestart.KeyHandleOffHeap kh, com.hazelcast.memory.HazelcastMemoryManager memoryManager)
kh - offheap key handlememoryManager - memory manager key handle address belongs toCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.