public interface WriteCommand extends VisitableCommand, FlagAffectedCommand
| Modifier and Type | Method and Description |
|---|---|
Set<Object> |
getAffectedKeys() |
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.
|
acceptVisitor, ignoreCommandOnStatus, shouldInvokegetCommandId, getParameters, isReturnValueExpected, perform, setParametersgetFlags, hasFlag, setFlagsboolean 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.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.