public interface RamStore
| Modifier and Type | Method and Description |
|---|---|
void |
accept(KeyHandle kh,
byte[] value)
Called during Hot Restart.
|
boolean |
copyEntry(KeyHandle kh,
int expectedSize,
RecordDataSink bufs)
Copies the key/value bytes into the corresponding byte buffers provided
by the supplied
RecordDataSink. |
void |
removeNullEntries(SetOfKeyHandle keyHandles)
Called during Hot Restart.
|
KeyHandle |
toKeyHandle(byte[] key)
Called during Hot Restart.
|
boolean copyEntry(KeyHandle kh, int expectedSize, RecordDataSink bufs) throws HotRestartException
RecordDataSink. Before copying checks that the actual
size of the record matches the value of the expectedSize parameter.
If it doesn't match, the method returns false.
If this method returns true, then the data stored from 0 to position
of the key and value buffers represents the key and value data of the record.
If this method returns false, the state of the byte buffers is unspecified.
The caller must ensure that the buffers returned from RecordDataSink
initially have position == 0.
This method must not acquire any locks which may be held while calling any of
the HotRestartStore's methods.
expectedSize - the expected size of the record (key + value).HotRestartException - if a record identified by the supplied key handle was not foundKeyHandle toKeyHandle(byte[] key)
void accept(KeyHandle kh, byte[] value)
void removeNullEntries(SetOfKeyHandle keyHandles)
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.