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