public class TryConsumeAndReturnRemainingTokensCommand extends Object implements GridCommand<ConsumptionProbe>
| Constructor and Description |
|---|
TryConsumeAndReturnRemainingTokensCommand(long tokensToConsume) |
| Modifier and Type | Method and Description |
|---|---|
ConsumptionProbe |
execute(GridBucketState gridState) |
boolean |
isBucketStateModified() |
public TryConsumeAndReturnRemainingTokensCommand(long tokensToConsume)
public ConsumptionProbe execute(GridBucketState gridState)
execute in interface GridCommand<ConsumptionProbe>public boolean isBucketStateModified()
isBucketStateModified in interface GridCommand<ConsumptionProbe>Copyright © 2018. All rights reserved.