public abstract class AbstractWriteKeyCommand<K,V> extends AbstractDataWriteCommand implements FunctionalCommand<K,V>
commandInvocationId
key, segment
Constructor and Description |
---|
AbstractWriteKeyCommand() |
AbstractWriteKeyCommand(Object key,
ValueMatcher valueMatcher,
int segment,
CommandInvocationId id,
Params params,
DataConversion keyDataConversion,
DataConversion valueDataConversion) |
Modifier and Type | Method and Description |
---|---|
void |
fail()
Make subsequent invocations of
WriteCommand.isSuccessful() return false . |
PrivateMetadata |
getInternalMetadata() |
DataConversion |
getKeyDataConversion() |
Params |
getParams() |
DataConversion |
getValueDataConversion() |
ValueMatcher |
getValueMatcher() |
void |
init(ComponentRegistry componentRegistry) |
boolean |
isSuccessful()
If true, a return value will be marshalled as a
SuccessfulResponse ,
otherwise it will be marshalled as a UnsuccessfulResponse . |
void |
setInternalMetadata(PrivateMetadata internalMetadata) |
void |
setValueMatcher(ValueMatcher valueMatcher) |
String |
toString() |
getAffectedKeys, getCommandInvocationId, getKeyLockOwner, getKeysToLock, hasSkipLocking, hasZeroLockAcquisition, isReturnValueExpected
equals, getFlagsBitSet, getKey, getSegment, getTopologyId, hashCode, printFlags, setFlagsBitSet, setKey, setTopologyId
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
toMutation
getInternalMetadata, setInternalMetadata
isConditional, isWriteOnly, updateStatusFromRemoteResponse
getKey
getTopologyId, setTopologyId
addFlag, addFlags, addFlags, getFlags, getFlagsBitSet, hasAllFlags, hasAnyFlag, hasFlag, setFlags, setFlagsBitSet
extractSegment, getSegment
public AbstractWriteKeyCommand(Object key, ValueMatcher valueMatcher, int segment, CommandInvocationId id, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion)
public AbstractWriteKeyCommand()
public void init(ComponentRegistry componentRegistry)
init
in interface VisitableCommand
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()
ReplicableCommand
SuccessfulResponse
,
otherwise it will be marshalled as a UnsuccessfulResponse
.isSuccessful
in interface ReplicableCommand
isSuccessful
in interface WriteCommand
public Params getParams()
getParams
in interface FunctionalCommand<K,V>
public void fail()
WriteCommand
WriteCommand.isSuccessful()
return false
.fail
in interface WriteCommand
public String toString()
toString
in class AbstractDataCommand
public DataConversion getKeyDataConversion()
getKeyDataConversion
in interface FunctionalCommand<K,V>
public DataConversion getValueDataConversion()
getValueDataConversion
in interface FunctionalCommand<K,V>
public PrivateMetadata getInternalMetadata()
getInternalMetadata
in interface DataWriteCommand
public void setInternalMetadata(PrivateMetadata internalMetadata)
setInternalMetadata
in interface DataWriteCommand
Copyright © 2021 JBoss by Red Hat. All rights reserved.