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