public final class WriteOnlyManyEntriesCommand<K,V,T> extends AbstractWriteManyCommand<K,V>
VisitableCommand.LoadType
Modifier and Type | Field and Description |
---|---|
static byte |
COMMAND_ID |
Constructor and Description |
---|
WriteOnlyManyEntriesCommand() |
WriteOnlyManyEntriesCommand(Map<?,?> arguments,
BiConsumer<T,EntryView.WriteEntryView<K,V>> f,
Params params,
CommandInvocationId commandInvocationId,
DataConversion keyDataConversion,
DataConversion valueDataConversion) |
WriteOnlyManyEntriesCommand(WriteOnlyManyEntriesCommand<K,V,T> command) |
Modifier and Type | Method and Description |
---|---|
Object |
acceptVisitor(InvocationContext ctx,
Visitor visitor)
Accept a visitor, and return the result of accepting this visitor.
|
Collection<?> |
getAffectedKeys() |
Map<?,?> |
getArguments() |
BiConsumer<T,EntryView.WriteEntryView<K,V>> |
getBiConsumer() |
byte |
getCommandId()
Used by marshallers to convert this command into an id for streaming.
|
Collection<?> |
getKeysToLock()
It returns a
Collection with the keys to be lock. |
void |
init(ComponentRegistry componentRegistry) |
boolean |
isReturnValueExpected()
If true, a return value will be provided when performed remotely.
|
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.
|
VisitableCommand.LoadType |
loadType() |
void |
readFrom(ObjectInput input)
Reads this instance from the stream written by
ReplicableCommand.writeTo(ObjectOutput) . |
void |
setArguments(Map<?,?> arguments) |
Mutation<K,V,?> |
toMutation(Object key) |
String |
toString() |
WriteOnlyManyEntriesCommand<K,V,T> |
withArguments(Map<?,?> entries) |
void |
writeTo(ObjectOutput output)
Writes this instance to the
ObjectOutput . |
fail, getCommandInvocationId, getFlagsBitSet, getInternalMetadata, getKeyDataConversion, getKeyLockOwner, getParams, getTopologyId, getValueDataConversion, getValueMatcher, hasSkipLocking, hasZeroLockAcquisition, isConditional, isForwarded, isSuccessful, setFlagsBitSet, setForwarded, setInternalMetadata, setParams, setTopologyId, setValueMatcher
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
updateStatusFromRemoteResponse
addFlag, addFlags, addFlags, getFlags, hasAllFlags, hasAnyFlag, hasFlag, setFlags
canBlock, invoke, invokeAsync, setOrigin
public static final byte COMMAND_ID
public WriteOnlyManyEntriesCommand(Map<?,?> arguments, BiConsumer<T,EntryView.WriteEntryView<K,V>> f, Params params, CommandInvocationId commandInvocationId, DataConversion keyDataConversion, DataConversion valueDataConversion)
public WriteOnlyManyEntriesCommand(WriteOnlyManyEntriesCommand<K,V,T> command)
public WriteOnlyManyEntriesCommand()
public void init(ComponentRegistry componentRegistry)
init
in interface VisitableCommand
init
in class AbstractWriteManyCommand<K,V>
public BiConsumer<T,EntryView.WriteEntryView<K,V>> getBiConsumer()
public Map<?,?> getArguments()
public void setArguments(Map<?,?> arguments)
public final WriteOnlyManyEntriesCommand<K,V,T> withArguments(Map<?,?> entries)
public byte getCommandId()
ReplicableCommand
public void writeTo(ObjectOutput output) throws IOException
ReplicableCommand
ObjectOutput
.output
- the stream.IOException
- if an error occurred during the I/O.public void readFrom(ObjectInput input) throws IOException, ClassNotFoundException
ReplicableCommand
ReplicableCommand.writeTo(ObjectOutput)
.input
- the stream to read.IOException
- if an error occurred during the I/O.ClassNotFoundException
- if it tries to load an undefined class.public boolean isReturnValueExpected()
ReplicableCommand
ResponseGenerator
may choose to simply return null to save on marshalling
costs.public Collection<?> getAffectedKeys()
public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommand
ctx
- invocation contextvisitor
- visitor to acceptThrowable
- in the event of problemspublic VisitableCommand.LoadType loadType()
public boolean isWriteOnly()
WriteCommand
public Collection<?> getKeysToLock()
RemoteLockCommand
Collection
with the keys to be lock.
It may return an empty collection if no keys needs to be locked independently of the return value of RemoteLockCommand.hasSkipLocking()
. It may contains duplicated keys and null
is not a valid return value.
Collection
of keys to lock.Copyright © 2021 JBoss by Red Hat. All rights reserved.