Uses of Class
com.github.cowwoc.tokenbucket.Limit.Builder
Packages that use Limit.Builder
-
Uses of Limit.Builder in com.github.cowwoc.tokenbucket
Methods in com.github.cowwoc.tokenbucket that return Limit.BuilderModifier and TypeMethodDescriptionLimit.Builder.initialTokens
(long initialTokens) Sets the initial number of tokens in the bucket.Limit.Builder.maximumTokens
(long maximumTokens) Sets the maximum number of tokens that the bucket may hold before overflowing.Indicates how oftentokensPerPeriod
should be added to the bucket.Limit.Builder.refillSize
(long refillSize) Sets the number of tokens that are refilled at a time.Limit.Builder.tokensPerPeriod
(long tokensPerPeriod) Sets the number of tokens to add to the bucket everyperiod
.Sets user data associated with this limit.Method parameters in com.github.cowwoc.tokenbucket with type arguments of type Limit.BuilderModifier and TypeMethodDescriptionBucket.Builder.addLimit
(Function<Limit.Builder, Limit> limitBuilder) Adds a limit that the bucket must respect.Bucket.ConfigurationUpdater.addLimit
(Function<Limit.Builder, Limit> limitBuilder) Adds a limit that the bucket must respect.