Uses of Class
com.github.cowwoc.tokenbucket.ConsumptionResult
Packages that use ConsumptionResult
-
Uses of ConsumptionResult in com.github.cowwoc.tokenbucket
Methods in com.github.cowwoc.tokenbucket that return ConsumptionResultModifier and TypeMethodDescriptionBucket.consume()Bucket.consume(long tokens) Bucket.consume(long minimumTokens, long maximumTokens) Container.consume()Consumes a single token, blocking until it becomes available.Container.consume(long tokens) Consumes the specified number of tokens, blocking until they become available.Container.consume(long minimumTokens, long maximumTokens) Consumes[minimumTokens, maximumTokens]tokens, blocking until they become available.Bucket.tryConsume()Bucket.tryConsume(long tokens) Bucket.tryConsume(long minimumTokens, long maximumTokens) Bucket.tryConsume(long minimumTokens, long maximumTokens, long timeout, TimeUnit unit) Bucket.tryConsume(long tokens, long timeout, TimeUnit unit) Container.tryConsume()Consumes a single token, only if one is available at the time of invocation.Container.tryConsume(long tokens) Consumestokenstokens, only if they are available at the time of invocation.Container.tryConsume(long minimumTokens, long maximumTokens) Consumes[minimumTokens, maximumTokens]tokens, only if they are available at the time of invocation.Container.tryConsume(long minimumTokens, long maximumTokens, long timeout, TimeUnit unit) Consumes[minimumTokens, maximumTokens]tokens, only if they become available within the given waiting time.Container.tryConsume(long tokens, long timeout, TimeUnit unit) Consumes the requested number oftokens, only if they become available within the given waiting time.