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) |
SerializationHandle |
getSerializationHandle() |
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<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>
Copyright © 2020. All rights reserved.