public interface AsyncVerboseBucket
AsyncBucketProxy
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)
Bucket.replaceConfiguration(BucketConfiguration)
Copyright © 2020. All rights reserved.