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