public interface WriteCommand extends VisitableCommand, FlagAffectedCommand, TopologyAffectedCommand
VisitableCommand.LoadType| Modifier and Type | Method and Description |
|---|---|
void |
fail()
Make subsequent invocations of
isSuccessful() return false. |
Collection<?> |
getAffectedKeys() |
CommandInvocationId |
getCommandInvocationId() |
PrivateMetadata |
getInternalMetadata(Object key) |
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.
|
default boolean |
isWriteOnly()
Indicates whether the command is write-only, meaning that it makes no
attempt to read the previously associated value with key for which the
command is directed.
|
void |
setInternalMetadata(Object key,
PrivateMetadata internalMetadata) |
void |
setValueMatcher(ValueMatcher valueMatcher) |
default void |
updateStatusFromRemoteResponse(Object remoteResponse)
Deprecated.
since 9.1
|
addFlag, addFlags, addFlags, getFlags, getFlagsBitSet, hasAllFlags, hasAnyFlag, hasFlag, setFlags, setFlagsBitSetacceptVisitor, init, loadTypecanBlock, getCommandId, invoke, invokeAsync, isReturnValueExpected, readFrom, setOrigin, writeTogetTopologyId, setTopologyIdboolean isSuccessful()
isSuccessful in interface ReplicableCommandboolean 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.Collection<?> getAffectedKeys()
@Deprecated default void updateStatusFromRemoteResponse(Object remoteResponse)
void fail()
isSuccessful() return false.default boolean isWriteOnly()
CommandInvocationId getCommandInvocationId()
CommandInvocationId associated to the command.PrivateMetadata getInternalMetadata(Object key)
void setInternalMetadata(Object key, PrivateMetadata internalMetadata)
Copyright © 2022 JBoss by Red Hat. All rights reserved.