Uses of Class
com.github.cowwoc.tokenbucket.Limit.ConfigurationUpdater
Packages that use Limit.ConfigurationUpdater
-
Uses of Limit.ConfigurationUpdater in com.github.cowwoc.tokenbucket
Methods in com.github.cowwoc.tokenbucket that return Limit.ConfigurationUpdaterModifier and TypeMethodDescriptionLimit.ConfigurationUpdater.availableTokens
(long availableTokens) Sets the number of available tokens.Limit.ConfigurationUpdater.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.ConfigurationUpdater.refillSize
(long refillSize) Sets the number of tokens that are refilled at a time.Limit.ConfigurationUpdater.tokensPerPeriod
(long tokensPerPeriod) Sets the number of tokens to add to the bucket everyperiod
.Limit.updateConfiguration()
Updates this Limit's configuration.Sets the data associated with this limit.