Add ReplicableEntry.raiseChangedFor(), raiseChangedForAllExcept(), improve MapRemoteOperations

This commit is contained in:
leventov
2015-12-30 22:33:42 +03:00
parent 2c1721e2e3
commit 04adb466a2
9 changed files with 164 additions and 107 deletions
@@ -30,9 +30,25 @@ public interface Replica extends Closeable {
interface QueryContext<K, V> {
void remotePut(Data<V> newValue, byte remoteIdentifier, long timestamp);
/**
* @param newValue the value of the replicated entry
* @param remoteEntryIdentifier origin identifier of the replicated entry
* @param remoteEntryTimestamp timestamp of the replicated entry
* @param remoteNodeIdentifier identifier of the remote node this replication came from,
* or -1 if unknown/not applicable
*/
void remotePut(
Data<V> newValue,
byte remoteEntryIdentifier, long remoteEntryTimestamp, byte remoteNodeIdentifier);
void remoteRemove(byte remoteIdentifier, long timestamp);
/**
* @param remoteEntryIdentifier origin identifier of the replicated entry
* @param remoteEntryTimestamp timestamp of the replicated entry
* @param remoteNodeIdentifier identifier of the remote node this replication came from,
* or -1 if unknown/not applicable
*/
void remoteRemove(
byte remoteEntryIdentifier, long remoteEntryTimestamp, byte remoteNodeIdentifier);
}
/**