mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Add methods for Engine support
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package net.openhft.chronicle.map;
|
||||
|
||||
import net.openhft.chronicle.bytes.Bytes;
|
||||
import net.openhft.chronicle.hash.Data;
|
||||
import net.openhft.chronicle.hash.replication.ReplicableEntry;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -27,6 +28,13 @@ import java.io.Closeable;
|
||||
*/
|
||||
public interface Replica extends Closeable {
|
||||
|
||||
interface QueryContext<K, V> {
|
||||
|
||||
void remotePut(Data<V> newValue, byte remoteIdentifier, long timestamp);
|
||||
|
||||
void remoteRemove(byte remoteIdentifier, long timestamp);
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides the unique Identifier associated with this map instance. <p> An identifier is used
|
||||
* to determine which replicating node made the change. <p> If two nodes update their map at the
|
||||
|
||||
Reference in New Issue
Block a user