public abstract class AbstractWriteKeyCommand<K,V> extends AbstractDataWriteCommand implements ParamsCommand
commandInvocationId
key
flags
Constructor and Description |
---|
AbstractWriteKeyCommand() |
AbstractWriteKeyCommand(K key,
ValueMatcher valueMatcher,
CommandInvocationId id,
Params params) |
Modifier and Type | Method and Description |
---|---|
Params |
getParams() |
ValueMatcher |
getValueMatcher() |
boolean |
isSuccessful()
Some commands may want to provide information on whether the command was successful or not.
|
void |
setValueMatcher(ValueMatcher valueMatcher) |
canBlock, getAffectedKeys, getKeyLockOwner, getKeysToLock, hasSkipLocking, hasZeroLockAcquisition, isReturnValueExpected
equals, getKey, hashCode, ignoreCommandOnStatus, setKey, shouldInvoke, toString
getMetadata, getTopologyId, setMetadata, setTopologyId
getFlags, setFlags
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isConditional, isWriteOnly, updateStatusFromRemoteResponse
acceptVisitor, alwaysReadsExistingValues, ignoreCommandOnStatus, readsExistingValues, shouldInvoke
getTopologyId, setTopologyId
getCommandId, getParameters, perform, readFrom, setParameters, writeTo
getMetadata, setMetadata
addFlag, addFlags, getFlags, hasFlag, setFlags, setFlags
getKey
public AbstractWriteKeyCommand(K key, ValueMatcher valueMatcher, CommandInvocationId id, Params params)
public AbstractWriteKeyCommand()
public ValueMatcher getValueMatcher()
getValueMatcher
in interface WriteCommand
public void setValueMatcher(ValueMatcher valueMatcher)
setValueMatcher
in interface WriteCommand
valueMatcher
- The new value matching policy.public boolean isSuccessful()
WriteCommand
isSuccessful
in interface WriteCommand
public Params getParams()
getParams
in interface ParamsCommand
Copyright © 2023 JBoss, a division of Red Hat. All rights reserved.