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