-
public interface VerboseBucketIntent of this interface is to provide the verbose version ofBucketAPI. All methods obey the same semantic but its results are more verbose.
-
-
Method Summary
-
-
-
Method Detail
-
tryConsume
VerboseResult<Boolean> tryConsume(long numTokens)
Does the same thatBucket.tryConsume(long)
-
consumeIgnoringRateLimits
VerboseResult<Long> consumeIgnoringRateLimits(long tokens)
Does the same thatBucket.consumeIgnoringRateLimits(long)
-
tryConsumeAndReturnRemaining
VerboseResult<ConsumptionProbe> tryConsumeAndReturnRemaining(long numTokens)
Does the same thatBucket.tryConsumeAndReturnRemaining(long)
-
estimateAbilityToConsume
VerboseResult<EstimationProbe> estimateAbilityToConsume(long numTokens)
Does the same thatBucket.estimateAbilityToConsume(long)
-
tryConsumeAsMuchAsPossible
VerboseResult<Long> tryConsumeAsMuchAsPossible()
Does the same thatBucket.tryConsumeAsMuchAsPossible()
-
tryConsumeAsMuchAsPossible
VerboseResult<Long> tryConsumeAsMuchAsPossible(long limit)
Does the same thatBucket.tryConsumeAsMuchAsPossible(long)
-
getAvailableTokens
VerboseResult<Long> getAvailableTokens()
Does the same thatBucket.getAvailableTokens()
-
addTokens
VerboseResult<Nothing> addTokens(long tokensToAdd)
Does the same thatBucket.addTokens(long)
-
reset
VerboseResult<Nothing> reset()
Does the same thatBucket.reset()
-
forceAddTokens
VerboseResult<Nothing> forceAddTokens(long tokensToAdd)
Does the same thatBucket.forceAddTokens(long)
-
replaceConfiguration
VerboseResult<Nothing> replaceConfiguration(BucketConfiguration newConfiguration, TokensInheritanceStrategy tokensInheritanceStrategy)
Does the same thatBucket.replaceConfiguration(BucketConfiguration, TokensInheritanceStrategy)
-
-