public final class DefaultEventualConsistencyStrategy extends Object
replicated
ChronicleHash
es:
last write wins. If two writes to a single entry occurred simultaneously on different
nodes, the write on the node with lower identifier wins.MapRemoteOperations
,
SetRemoteOperations
Modifier and Type | Method and Description |
---|---|
static AcceptanceDecision |
decideOnRemoteModification(HashReplicableEntry<?> entry,
RemoteOperationContext<?> context)
Returns the acceptance decision, should be made about the modification operation in the
given
context , aiming to modify the given entry . |
public static AcceptanceDecision decideOnRemoteModification(HashReplicableEntry<?> entry, RemoteOperationContext<?> context)
context
, aiming to modify the given entry
. This method doesn't do any
changes to entry
nor context
state. MapRemoteOperations
and
SetRemoteOperations
method implementations should guide the result of calling this
method to do something to actually apply the remote operation.entry
- the entry to be modifiedcontext
- the remote operation contextCopyright © 2015. All rights reserved.