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