public class CreateInitialStateAndExecuteCommand<T> extends Object implements RemoteCommand<T>, ComparableByContent<CreateInitialStateAndExecuteCommand>
Modifier and Type | Field and Description |
---|---|
static SerializationHandle<CreateInitialStateAndExecuteCommand> |
SERIALIZATION_HANDLE |
Constructor and Description |
---|
CreateInitialStateAndExecuteCommand(BucketConfiguration configuration,
RemoteCommand<T> targetCommand) |
Modifier and Type | Method and Description |
---|---|
boolean |
equalsByContent(CreateInitialStateAndExecuteCommand other) |
long |
estimateTokensToConsume() |
CommandResult<T> |
execute(MutableBucketEntry mutableEntry,
long currentTimeNanos) |
BucketConfiguration |
getConfiguration() |
long |
getConsumedTokens(T result) |
SerializationHandle |
getSerializationHandle() |
RemoteCommand<T> |
getTargetCommand() |
boolean |
isImmediateSyncRequired(long unsynchronizedTokens,
long nanosSinceLastSync) |
boolean |
isInitializationCommand() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asVerbose, deserialize, serialize
equals
public static SerializationHandle<CreateInitialStateAndExecuteCommand> SERIALIZATION_HANDLE
public CreateInitialStateAndExecuteCommand(BucketConfiguration configuration, RemoteCommand<T> targetCommand)
public CommandResult<T> execute(MutableBucketEntry mutableEntry, long currentTimeNanos)
execute
in interface RemoteCommand<T>
public BucketConfiguration getConfiguration()
public RemoteCommand<T> getTargetCommand()
public boolean isInitializationCommand()
isInitializationCommand
in interface RemoteCommand<T>
public SerializationHandle getSerializationHandle()
getSerializationHandle
in interface RemoteCommand<T>
public boolean equalsByContent(CreateInitialStateAndExecuteCommand other)
equalsByContent
in interface ComparableByContent<CreateInitialStateAndExecuteCommand>
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>
Copyright © 2020. All rights reserved.