public class SyncCommand extends Object implements RemoteCommand<Nothing>, ComparableByContent<SyncCommand>
| Modifier and Type | Field and Description |
|---|---|
static SerializationHandle<SyncCommand> |
SERIALIZATION_HANDLE |
| Constructor and Description |
|---|
SyncCommand(long unsynchronizedTokens,
long nanosSinceLastSync) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equalsByContent(SyncCommand other) |
long |
estimateTokensToConsume() |
CommandResult<Nothing> |
execute(MutableBucketEntry mutableEntry,
long currentTimeNanos) |
long |
getConsumedTokens(Nothing result) |
long |
getNanosSinceLastSync() |
Version |
getRequiredVersion() |
SerializationHandle |
getSerializationHandle() |
long |
getUnsynchronizedTokens() |
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<SyncCommand> SERIALIZATION_HANDLE
public SyncCommand(long unsynchronizedTokens,
long nanosSinceLastSync)
public long getNanosSinceLastSync()
public long getUnsynchronizedTokens()
public CommandResult<Nothing> execute(MutableBucketEntry mutableEntry, long currentTimeNanos)
execute in interface RemoteCommand<Nothing>public SerializationHandle getSerializationHandle()
getSerializationHandle in interface RemoteCommand<Nothing>public boolean equalsByContent(SyncCommand other)
equalsByContent in interface ComparableByContent<SyncCommand>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 © 2022. All rights reserved.