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