public class VerboseCommand<T> extends Object implements RemoteCommand<RemoteVerboseResult<T>>, ComparableByContent<VerboseCommand<?>>
| Modifier and Type | Field and Description |
|---|---|
static SerializationHandle<VerboseCommand<?>> |
SERIALIZATION_HANDLE |
static VerboseCommand<Boolean> |
TRY_CONSUME_ONE_VERBOSE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeMerged(RemoteCommand<?> another) |
boolean |
equalsByContent(VerboseCommand<?> other) |
long |
estimateTokensToConsume() |
CommandResult<RemoteVerboseResult<T>> |
execute(MutableBucketEntry mutableEntry,
long currentTimeNanos) |
static <T> VerboseCommand<T> |
from(RemoteCommand<T> targetCommand) |
long |
getConsumedTokens(RemoteVerboseResult<T> result) |
int |
getMergedCommandsCount() |
Version |
getRequiredVersion() |
SerializationHandle<RemoteCommand<?>> |
getSerializationHandle() |
RemoteCommand<T> |
getTargetCommand() |
boolean |
isImmediateSyncRequired(long unsynchronizedTokens,
long nanosSinceLastSync) |
boolean |
isMerged() |
void |
mergeInto(RemoteCommand<?> mergedCommand) |
RemoteCommand<?> |
toMergedCommand() |
CommandResult<?> |
unwrapOneResult(RemoteVerboseResult<T> mergedVerboseResult,
int indice) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasVerbose, deserialize, fromJsonCompatibleSnapshot, isInitializationCommand, serialize, toJsonCompatibleSnapshotequalspublic static final VerboseCommand<Boolean> TRY_CONSUME_ONE_VERBOSE
public static final SerializationHandle<VerboseCommand<?>> SERIALIZATION_HANDLE
public static <T> VerboseCommand<T> from(RemoteCommand<T> targetCommand)
public RemoteCommand<T> getTargetCommand()
public boolean canBeMerged(RemoteCommand<?> another)
canBeMerged in interface RemoteCommand<RemoteVerboseResult<T>>public RemoteCommand<?> toMergedCommand()
toMergedCommand in interface RemoteCommand<RemoteVerboseResult<T>>public void mergeInto(RemoteCommand<?> mergedCommand)
mergeInto in interface RemoteCommand<RemoteVerboseResult<T>>public int getMergedCommandsCount()
getMergedCommandsCount in interface RemoteCommand<RemoteVerboseResult<T>>public CommandResult<?> unwrapOneResult(RemoteVerboseResult<T> mergedVerboseResult, int indice)
unwrapOneResult in interface RemoteCommand<RemoteVerboseResult<T>>public boolean isMerged()
isMerged in interface RemoteCommand<RemoteVerboseResult<T>>public CommandResult<RemoteVerboseResult<T>> execute(MutableBucketEntry mutableEntry, long currentTimeNanos)
execute in interface RemoteCommand<RemoteVerboseResult<T>>public SerializationHandle<RemoteCommand<?>> getSerializationHandle()
getSerializationHandle in interface RemoteCommand<RemoteVerboseResult<T>>public boolean equalsByContent(VerboseCommand<?> other)
equalsByContent in interface ComparableByContent<VerboseCommand<?>>public boolean isImmediateSyncRequired(long unsynchronizedTokens,
long nanosSinceLastSync)
isImmediateSyncRequired in interface RemoteCommand<RemoteVerboseResult<T>>public long estimateTokensToConsume()
estimateTokensToConsume in interface RemoteCommand<RemoteVerboseResult<T>>public long getConsumedTokens(RemoteVerboseResult<T> result)
getConsumedTokens in interface RemoteCommand<RemoteVerboseResult<T>>public Version getRequiredVersion()
getRequiredVersion in interface RemoteCommand<RemoteVerboseResult<T>>Copyright © 2024. All rights reserved.