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 state,
long currentTimeNanos) |
boolean |
isBucketStateModified() |
public ReserveAndCalculateTimeToSleepCommand(long tokensToConsume, long waitIfBusyNanosLimit)
public Long execute(GridBucketState state, long currentTimeNanos)
execute
in interface GridCommand<Long>
public boolean isBucketStateModified()
isBucketStateModified
in interface GridCommand<Long>
Copyright © 2018. All rights reserved.