public class MultiCommand extends Object implements RemoteCommand<MultiResult>, ComparableByContent<MultiCommand>
| Modifier and Type | Field and Description |
|---|---|
static SerializationHandle<MultiCommand> |
SERIALIZATION_HANDLE |
| Constructor and Description |
|---|
MultiCommand(List<RemoteCommand<?>> commands) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equalsByContent(MultiCommand other) |
long |
estimateTokensToConsume() |
CommandResult<MultiResult> |
execute(MutableBucketEntry mutableEntry,
long currentTimeNanos) |
List<RemoteCommand<?>> |
getCommands() |
long |
getConsumedTokens(MultiResult multiResult) |
Version |
getRequiredVersion() |
SerializationHandle |
getSerializationHandle() |
boolean |
isImmediateSyncRequired(long unsynchronizedTokens,
long nanosSinceLastSync) |
boolean |
isInitializationCommand() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasVerbose, deserialize, fromJsonCompatibleSnapshot, serialize, toJsonCompatibleSnapshotequalspublic static SerializationHandle<MultiCommand> SERIALIZATION_HANDLE
public MultiCommand(List<RemoteCommand<?>> commands)
public CommandResult<MultiResult> execute(MutableBucketEntry mutableEntry, long currentTimeNanos)
execute in interface RemoteCommand<MultiResult>public boolean isInitializationCommand()
isInitializationCommand in interface RemoteCommand<MultiResult>public List<RemoteCommand<?>> getCommands()
public SerializationHandle getSerializationHandle()
getSerializationHandle in interface RemoteCommand<MultiResult>public boolean equalsByContent(MultiCommand other)
equalsByContent in interface ComparableByContent<MultiCommand>public boolean isImmediateSyncRequired(long unsynchronizedTokens,
long nanosSinceLastSync)
isImmediateSyncRequired in interface RemoteCommand<MultiResult>public long estimateTokensToConsume()
estimateTokensToConsume in interface RemoteCommand<MultiResult>public long getConsumedTokens(MultiResult multiResult)
getConsumedTokens in interface RemoteCommand<MultiResult>public Version getRequiredVersion()
getRequiredVersion in interface RemoteCommand<MultiResult>Copyright © 2022. All rights reserved.