public abstract class AbstractWriteKeyCommand<K,V> extends AbstractDataWriteCommand implements FunctionalCommand<K,V>
commandInvocationIdkey, 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, isReturnValueExpectedequals, getFlagsBitSet, getKey, getSegment, getTopologyId, hashCode, printFlags, setFlagsBitSet, setKey, setTopologyIdclone, finalize, getClass, notify, notifyAll, wait, wait, waittoMutationgetInternalMetadata, setInternalMetadataisConditional, isWriteOnly, updateStatusFromRemoteResponsegetKeygetTopologyId, setTopologyIdaddFlag, addFlags, addFlags, getFlags, getFlagsBitSet, hasAllFlags, hasAnyFlag, hasFlag, setFlags, setFlagsBitSetextractSegment, getSegmentpublic 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 VisitableCommandpublic ValueMatcher getValueMatcher()
getValueMatcher in interface WriteCommandpublic void setValueMatcher(ValueMatcher valueMatcher)
setValueMatcher in interface WriteCommandvalueMatcher - The new value matching policy.public boolean isSuccessful()
ReplicableCommandSuccessfulResponse,
otherwise it will be marshalled as a UnsuccessfulResponse.isSuccessful in interface ReplicableCommandisSuccessful in interface WriteCommandpublic Params getParams()
getParams in interface FunctionalCommand<K,V>public void fail()
WriteCommandWriteCommand.isSuccessful() return false.fail in interface WriteCommandpublic String toString()
toString in class AbstractDataCommandpublic DataConversion getKeyDataConversion()
getKeyDataConversion in interface FunctionalCommand<K,V>public DataConversion getValueDataConversion()
getValueDataConversion in interface FunctionalCommand<K,V>public PrivateMetadata getInternalMetadata()
getInternalMetadata in interface DataWriteCommandpublic void setInternalMetadata(PrivateMetadata internalMetadata)
setInternalMetadata in interface DataWriteCommandCopyright © 2022 JBoss by Red Hat. All rights reserved.