public class VerboseCommand<T> extends Object implements RemoteCommand<RemoteVerboseResult<T>>, ComparableByContent<VerboseCommand<?>>
Modifier and Type | Field and Description |
---|---|
static SerializationHandle<VerboseCommand<?>> |
SERIALIZATION_HANDLE |
Constructor and Description |
---|
VerboseCommand(RemoteCommand<T> targetCommand) |
Modifier and Type | Method and Description |
---|---|
boolean |
equalsByContent(VerboseCommand<?> other) |
long |
estimateTokensToConsume() |
CommandResult<RemoteVerboseResult<T>> |
execute(MutableBucketEntry mutableEntry,
long currentTimeNanos) |
long |
getConsumedTokens(RemoteVerboseResult<T> result) |
SerializationHandle<RemoteCommand<?>> |
getSerializationHandle() |
RemoteCommand<T> |
getTargetCommand() |
boolean |
isImmediateSyncRequired(long unsynchronizedTokens,
long nanosSinceLastSync) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asVerbose, deserialize, isInitializationCommand, serialize
equals
public static final SerializationHandle<VerboseCommand<?>> SERIALIZATION_HANDLE
public VerboseCommand(RemoteCommand<T> targetCommand)
public RemoteCommand<T> getTargetCommand()
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>>
Copyright © 2020. All rights reserved.