public class MultiCommand extends Object implements RemoteCommand<MultiResult>, ComparableByContent<MultiCommand>
| Modifier and Type | Field and Description |
|---|---|
static int |
MERGING_THRESHOLD |
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) |
int |
getMergedCommandsCount() |
Version |
getRequiredVersion() |
SerializationHandle |
getSerializationHandle() |
boolean |
isImmediateSyncRequired(long unsynchronizedTokens,
long nanosSinceLastSync) |
boolean |
isInitializationCommand() |
boolean |
isMerged() |
static MultiCommand |
merge(List<RemoteCommand<?>> commands) |
List<CommandResult<?>> |
unwrap(CommandResult<MultiResult> multiResult) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasVerbose, canBeMerged, deserialize, fromJsonCompatibleSnapshot, mergeInto, serialize, toJsonCompatibleSnapshot, toMergedCommand, unwrapOneResultequalspublic static final int MERGING_THRESHOLD
public static SerializationHandle<MultiCommand> SERIALIZATION_HANDLE
public MultiCommand(List<RemoteCommand<?>> commands)
public static MultiCommand merge(List<RemoteCommand<?>> commands)
public List<CommandResult<?>> unwrap(CommandResult<MultiResult> multiResult)
public boolean isMerged()
isMerged in interface RemoteCommand<MultiResult>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 int getMergedCommandsCount()
getMergedCommandsCount 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 © 2024. All rights reserved.