public class CreateInitialStateWithVersionOrReplaceConfigurationAndExecuteCommand<T> extends Object implements RemoteCommand<T>, ComparableByContent<CreateInitialStateWithVersionOrReplaceConfigurationAndExecuteCommand>
| Modifier and Type | Field and Description |
|---|---|
static SerializationHandle<CreateInitialStateWithVersionOrReplaceConfigurationAndExecuteCommand<?>> |
SERIALIZATION_HANDLE |
| Constructor and Description |
|---|
CreateInitialStateWithVersionOrReplaceConfigurationAndExecuteCommand(BucketConfiguration configuration,
RemoteCommand<T> targetCommand,
long desiredConfigurationVersion,
TokensInheritanceStrategy tokensInheritanceStrategy) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equalsByContent(CreateInitialStateWithVersionOrReplaceConfigurationAndExecuteCommand other) |
long |
estimateTokensToConsume() |
CommandResult<T> |
execute(MutableBucketEntry mutableEntry,
long currentTimeNanos) |
BucketConfiguration |
getConfiguration() |
long |
getConsumedTokens(T result) |
long |
getDesiredConfigurationVersion() |
Version |
getRequiredVersion() |
SerializationHandle |
getSerializationHandle() |
RemoteCommand<T> |
getTargetCommand() |
TokensInheritanceStrategy |
getTokensInheritanceStrategy() |
boolean |
isImmediateSyncRequired(long unsynchronizedTokens,
long nanosSinceLastSync) |
boolean |
isInitializationCommand() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasVerbose, canBeMerged, deserialize, fromJsonCompatibleSnapshot, getMergedCommandsCount, isMerged, mergeInto, serialize, toJsonCompatibleSnapshot, toMergedCommand, unwrapOneResultequalspublic static SerializationHandle<CreateInitialStateWithVersionOrReplaceConfigurationAndExecuteCommand<?>> SERIALIZATION_HANDLE
public CreateInitialStateWithVersionOrReplaceConfigurationAndExecuteCommand(BucketConfiguration configuration, RemoteCommand<T> targetCommand, long desiredConfigurationVersion, TokensInheritanceStrategy tokensInheritanceStrategy)
public CommandResult<T> execute(MutableBucketEntry mutableEntry, long currentTimeNanos)
execute in interface RemoteCommand<T>public BucketConfiguration getConfiguration()
public RemoteCommand<T> getTargetCommand()
public long getDesiredConfigurationVersion()
public TokensInheritanceStrategy getTokensInheritanceStrategy()
public boolean isInitializationCommand()
isInitializationCommand in interface RemoteCommand<T>public SerializationHandle getSerializationHandle()
getSerializationHandle in interface RemoteCommand<T>public boolean equalsByContent(CreateInitialStateWithVersionOrReplaceConfigurationAndExecuteCommand other)
equalsByContent in interface ComparableByContent<CreateInitialStateWithVersionOrReplaceConfigurationAndExecuteCommand>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>public Version getRequiredVersion()
getRequiredVersion in interface RemoteCommand<T>Copyright © 2024. All rights reserved.