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