Module io.github.bucket4j.core
Class GetConfigurationCommand
- java.lang.Object
-
- io.github.bucket4j.distributed.remote.commands.GetConfigurationCommand
-
- All Implemented Interfaces:
RemoteCommand<BucketConfiguration>,ComparableByContent<GetConfigurationCommand>
public class GetConfigurationCommand extends Object implements RemoteCommand<BucketConfiguration>, ComparableByContent<GetConfigurationCommand>
-
-
Field Summary
Fields Modifier and Type Field Description static SerializationHandle<GetConfigurationCommand>SERIALIZATION_HANDLE
-
Constructor Summary
Constructors Constructor Description GetConfigurationCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequalsByContent(GetConfigurationCommand other)longestimateTokensToConsume()CommandResult<BucketConfiguration>execute(MutableBucketEntry mutableEntry, long currentTimeNanos)longgetConsumedTokens(BucketConfiguration result)VersiongetRequiredVersion()SerializationHandlegetSerializationHandle()booleanisImmediateSyncRequired(long unsynchronizedTokens, long nanosSinceLastSync)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.bucket4j.distributed.remote.RemoteCommand
asVerbose, canBeMerged, getMergedCommandsCount, isInitializationCommand, isMerged, mergeInto, toMergedCommand, unwrapOneResult
-
-
-
-
Field Detail
-
SERIALIZATION_HANDLE
public static SerializationHandle<GetConfigurationCommand> SERIALIZATION_HANDLE
-
-
Method Detail
-
execute
public CommandResult<BucketConfiguration> execute(MutableBucketEntry mutableEntry, long currentTimeNanos)
- Specified by:
executein interfaceRemoteCommand<BucketConfiguration>
-
getSerializationHandle
public SerializationHandle getSerializationHandle()
- Specified by:
getSerializationHandlein interfaceRemoteCommand<BucketConfiguration>
-
equalsByContent
public boolean equalsByContent(GetConfigurationCommand other)
- Specified by:
equalsByContentin interfaceComparableByContent<GetConfigurationCommand>
-
isImmediateSyncRequired
public boolean isImmediateSyncRequired(long unsynchronizedTokens, long nanosSinceLastSync)- Specified by:
isImmediateSyncRequiredin interfaceRemoteCommand<BucketConfiguration>
-
estimateTokensToConsume
public long estimateTokensToConsume()
- Specified by:
estimateTokensToConsumein interfaceRemoteCommand<BucketConfiguration>
-
getConsumedTokens
public long getConsumedTokens(BucketConfiguration result)
- Specified by:
getConsumedTokensin interfaceRemoteCommand<BucketConfiguration>
-
getRequiredVersion
public Version getRequiredVersion()
- Specified by:
getRequiredVersionin interfaceRemoteCommand<BucketConfiguration>
-
-