public class AddTokensCommand extends Object implements RemoteCommand<Nothing>, ComparableByContent<AddTokensCommand>
| Modifier and Type | Field and Description |
|---|---|
static SerializationHandle<AddTokensCommand> |
SERIALIZATION_HANDLE |
| Constructor and Description |
|---|
AddTokensCommand(long tokensToAdd) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equalsByContent(AddTokensCommand other) |
long |
estimateTokensToConsume() |
CommandResult<Nothing> |
execute(MutableBucketEntry mutableEntry,
long currentTimeNanos) |
long |
getConsumedTokens(Nothing result) |
Version |
getRequiredVersion() |
SerializationHandle |
getSerializationHandle() |
long |
getTokensToAdd() |
boolean |
isImmediateSyncRequired(long unsynchronizedTokens,
long nanosSinceLastSync) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasVerbose, canBeMerged, deserialize, fromJsonCompatibleSnapshot, getMergedCommandsCount, isInitializationCommand, isMerged, mergeInto, serialize, toJsonCompatibleSnapshot, toMergedCommand, unwrapOneResultequalspublic static final SerializationHandle<AddTokensCommand> SERIALIZATION_HANDLE
public CommandResult<Nothing> execute(MutableBucketEntry mutableEntry, long currentTimeNanos)
execute in interface RemoteCommand<Nothing>public long getTokensToAdd()
public SerializationHandle getSerializationHandle()
getSerializationHandle in interface RemoteCommand<Nothing>public boolean equalsByContent(AddTokensCommand other)
equalsByContent in interface ComparableByContent<AddTokensCommand>public boolean isImmediateSyncRequired(long unsynchronizedTokens,
long nanosSinceLastSync)
isImmediateSyncRequired in interface RemoteCommand<Nothing>public long estimateTokensToConsume()
estimateTokensToConsume in interface RemoteCommand<Nothing>public long getConsumedTokens(Nothing result)
getConsumedTokens in interface RemoteCommand<Nothing>public Version getRequiredVersion()
getRequiredVersion in interface RemoteCommand<Nothing>Copyright © 2024. All rights reserved.