public abstract class ReplicatedInput<K,V,R> extends Object implements net.openhft.chronicle.hash.replication.RemoteOperationContext<K>, net.openhft.chronicle.map.replication.MapRemoteQueryContext<K,V,R>, net.openhft.chronicle.map.Replica.QueryContext<K,V>
| Constructor and Description |
|---|
ReplicatedInput() |
| Modifier and Type | Method and Description |
|---|---|
Data<V> |
dummyZeroValue()
The value used as a tombstone, for removed entries, to save space.
|
void |
processReplicatedEvent(byte remoteNodeIdentifier,
net.openhft.chronicle.bytes.Bytes replicatedInputBytes) |
void |
remotePut(Data<V> newValue,
byte remoteEntryIdentifier,
long remoteEntryTimestamp,
byte remoteNodeIdentifier) |
void |
remoteRemove(byte remoteEntryIdentifier,
long remoteEntryTimestamp,
byte remoteNodeIdentifier) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabsentEntryqueriedKey, segmentIndexreadLock, updateLock, writeLockhash, map, wrapValueAsData, wrapValueBytesAsDatasetinsert, removeinsert, remove, replaceValuedefaultValuepublic Data<V> dummyZeroValue()
net.openhft.chronicle.map.replication.MapRemoteQueryContext
The returned value doesn't have object form (i. e. it's Data.get() and Data.getUsing(Object) methods throw UnsupportedOperationException), it has only
bytes form, of all zero bytes.
public void processReplicatedEvent(byte remoteNodeIdentifier,
net.openhft.chronicle.bytes.Bytes replicatedInputBytes)
public void remotePut(Data<V> newValue, byte remoteEntryIdentifier, long remoteEntryTimestamp, byte remoteNodeIdentifier)
remotePut in interface net.openhft.chronicle.map.Replica.QueryContext<K,V>newValue - the value of the replicated entryremoteEntryIdentifier - origin identifier of the replicated entryremoteEntryTimestamp - timestamp of the replicated entryremoteNodeIdentifier - identifier of the remote node this replication came from,
or -1 if unknown/not applicablepublic void remoteRemove(byte remoteEntryIdentifier,
long remoteEntryTimestamp,
byte remoteNodeIdentifier)
remoteRemove in interface net.openhft.chronicle.map.Replica.QueryContext<K,V>remoteEntryIdentifier - origin identifier of the replicated entryremoteEntryTimestamp - timestamp of the replicated entryremoteNodeIdentifier - identifier of the remote node this replication came from,
or -1 if unknown/not applicableCopyright © 2024. All rights reserved.