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