public interface WriteCommand extends VisitableCommand, FlagAffectedCommand
Modifier and Type | Method and Description |
---|---|
Set<Object> |
getAffectedKeys() |
ValueMatcher |
getValueMatcher() |
boolean |
isConditional()
Certain commands only work based on a certain condition or state of the cache.
|
boolean |
isSuccessful()
Some commands may want to provide information on whether the command was successful or not.
|
void |
setValueMatcher(ValueMatcher valueMatcher) |
void |
updateStatusFromRemoteResponse(Object remoteResponse)
Used for conditional commands, to update the status of the command on the originator
based on the result of its execution on the primary owner.
|
acceptVisitor, ignoreCommandOnStatus, shouldInvoke
getTopologyId, setTopologyId
canBlock, getCommandId, getParameters, isReturnValueExpected, perform, setParameters
getMetadata, setMetadata
getFlags, hasFlag, setFlags, setFlags
boolean isSuccessful()
boolean isConditional()
ConcurrentMap.putIfAbsent(Object, Object)
only does anything if a condition is met, i.e., the entry in
question is not already present. This method tests whether the command in question is conditional or not.ValueMatcher getValueMatcher()
void setValueMatcher(ValueMatcher valueMatcher)
valueMatcher
- The new value matching policy.Set<Object> getAffectedKeys()
void updateStatusFromRemoteResponse(Object remoteResponse)
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.