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