public class ConsumeIgnoringRateLimitsCommand extends Object implements GridCommand<Long>
Modifier and Type | Field and Description |
---|---|
static SerializationHandle<ConsumeIgnoringRateLimitsCommand> |
SERIALIZATION_HANDLE |
Constructor and Description |
---|
ConsumeIgnoringRateLimitsCommand(long limit) |
Modifier and Type | Method and Description |
---|---|
Long |
execute(GridBucketState state,
long currentTimeNanos) |
long |
getTokensToConsume() |
boolean |
isBucketStateModified() |
public static SerializationHandle<ConsumeIgnoringRateLimitsCommand> SERIALIZATION_HANDLE
public ConsumeIgnoringRateLimitsCommand(long limit)
public Long execute(GridBucketState state, long currentTimeNanos)
execute
in interface GridCommand<Long>
public boolean isBucketStateModified()
isBucketStateModified
in interface GridCommand<Long>
public long getTokensToConsume()
Copyright © 2020. All rights reserved.