public class EstimateAbilityToConsumeCommand extends Object implements GridCommand<EstimationProbe>
Modifier and Type | Field and Description |
---|---|
static SerializationHandle<EstimateAbilityToConsumeCommand> |
SERIALIZATION_HANDLE |
Constructor and Description |
---|
EstimateAbilityToConsumeCommand(long tokensToEstimate) |
Modifier and Type | Method and Description |
---|---|
EstimationProbe |
execute(GridBucketState state,
long currentTimeNanos) |
long |
getTokensToConsume() |
boolean |
isBucketStateModified() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asVerbose
public static final SerializationHandle<EstimateAbilityToConsumeCommand> SERIALIZATION_HANDLE
public EstimateAbilityToConsumeCommand(long tokensToEstimate)
public EstimationProbe execute(GridBucketState state, long currentTimeNanos)
execute
in interface GridCommand<EstimationProbe>
public boolean isBucketStateModified()
isBucketStateModified
in interface GridCommand<EstimationProbe>
public long getTokensToConsume()
Copyright © 2021. All rights reserved.