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