public interface AsyncVerboseBucket
AsyncBucket
API.
All methods obey the same semantic but its results are more verbose.CompletableFuture<VerboseResult<Boolean>> tryConsume(long numTokens)
Bucket.tryConsume(long)
CompletableFuture<VerboseResult<Long>> consumeIgnoringRateLimits(long tokens)
Bucket.consumeIgnoringRateLimits(long)
CompletableFuture<VerboseResult<ConsumptionProbe>> tryConsumeAndReturnRemaining(long numTokens)
Bucket.tryConsumeAndReturnRemaining(long)
CompletableFuture<VerboseResult<EstimationProbe>> estimateAbilityToConsume(long numTokens)
Bucket.estimateAbilityToConsume(long)
CompletableFuture<VerboseResult<Long>> tryConsumeAsMuchAsPossible()
Bucket.tryConsumeAsMuchAsPossible()
CompletableFuture<VerboseResult<Long>> tryConsumeAsMuchAsPossible(long limit)
Bucket.tryConsumeAsMuchAsPossible(long)
CompletableFuture<VerboseResult<Nothing>> addTokens(long tokensToAdd)
Bucket.addTokens(long)
CompletableFuture<VerboseResult<Nothing>> replaceConfiguration(BucketConfiguration newConfiguration, TokensInheritanceStrategy tokensInheritanceStrategy)
Bucket.replaceConfiguration(BucketConfiguration, TokensInheritanceStrategy)
Copyright © 2021. All rights reserved.