public final class WriteOnlyManyCommand<K,V> extends AbstractWriteManyCommand<K,V>
VisitableCommand.LoadType| Modifier and Type | Field and Description |
|---|---|
static byte |
COMMAND_ID |
| Constructor and Description |
|---|
WriteOnlyManyCommand() |
WriteOnlyManyCommand(Collection<?> keys,
Consumer<EntryView.WriteEntryView<K,V>> f,
Params params,
CommandInvocationId commandInvocationId,
DataConversion keyDataConversion,
DataConversion valueDataConversion) |
WriteOnlyManyCommand(WriteOnlyManyCommand<K,V> 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() |
byte |
getCommandId()
Used by marshallers to convert this command into an id for streaming.
|
Consumer<EntryView.WriteEntryView<K,V>> |
getConsumer() |
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 |
setKeys(Collection<?> keys) |
Mutation<K,V,?> |
toMutation(Object key) |
String |
toString() |
WriteOnlyManyCommand<K,V> |
withKeys(Collection<?> keys) |
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, setValueMatcherclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitupdateStatusFromRemoteResponseaddFlag, addFlags, addFlags, getFlags, hasAllFlags, hasAnyFlag, hasFlag, setFlagscanBlock, invoke, invokeAsync, setOriginpublic static final byte COMMAND_ID
public WriteOnlyManyCommand(Collection<?> keys, Consumer<EntryView.WriteEntryView<K,V>> f, Params params, CommandInvocationId commandInvocationId, DataConversion keyDataConversion, DataConversion valueDataConversion)
public WriteOnlyManyCommand(WriteOnlyManyCommand<K,V> command)
public WriteOnlyManyCommand()
public void init(ComponentRegistry componentRegistry)
init in interface VisitableCommandinit in class AbstractWriteManyCommand<K,V>public Consumer<EntryView.WriteEntryView<K,V>> getConsumer()
public void setKeys(Collection<?> keys)
public final WriteOnlyManyCommand<K,V> withKeys(Collection<?> keys)
public byte getCommandId()
ReplicableCommandpublic void writeTo(ObjectOutput output) throws IOException
ReplicableCommandObjectOutput.output - the stream.IOException - if an error occurred during the I/O.public void readFrom(ObjectInput input) throws IOException, ClassNotFoundException
ReplicableCommandReplicableCommand.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 Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommandctx - invocation contextvisitor - visitor to acceptThrowable - in the event of problemspublic boolean isReturnValueExpected()
ReplicableCommandResponseGenerator may choose to simply return null to save on marshalling
costs.public Collection<?> getAffectedKeys()
public VisitableCommand.LoadType loadType()
public boolean isWriteOnly()
WriteCommandpublic Collection<?> getKeysToLock()
RemoteLockCommandCollection 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 © 2022 JBoss by Red Hat. All rights reserved.