Uses of Class
io.engineblock.activityapi.ratelimits.RateSpec
-
Packages that use RateSpec Package Description io.engineblock.activityapi.ratelimits -
-
Uses of RateSpec in io.engineblock.activityapi.ratelimits
Methods in io.engineblock.activityapi.ratelimits that return RateSpec Modifier and Type Method Description RateSpecHybridRateLimiter. getRateSpec()RateSpecRateLimiter. getRateSpec()Get the rate spec that this rate limiter was created from.RateSpecTokenPool. getRateSpec()RateSpecRateSpec. withBurstRatio(double burstRatio)RateSpecRateSpec. withOpsPerSecond(double rate)RateSpecRateSpec. withVerb(RateSpec.Verb verb)Methods in io.engineblock.activityapi.ratelimits with parameters of type RateSpec Modifier and Type Method Description TokenFillerTokenFiller. apply(RateSpec rateSpec)voidTokenPool. apply(RateSpec rateSpec)Change the settings of this token pool, and wake any blocked callers just in case it allows them to proceed.voidHybridRateLimiter. applyRateSpec(RateSpec updatingRateSpec)voidRateLimiter. applyRateSpec(RateSpec spec)Modify the rate of a running rate limiter.static RateLimiterRateLimiters. createOrUpdate(ActivityDef def, java.lang.String label, RateLimiter extant, RateSpec spec)Constructors in io.engineblock.activityapi.ratelimits with parameters of type RateSpec Constructor Description HybridRateLimiter(ActivityDef def, java.lang.String label, RateSpec rateSpec)TokenFiller(RateSpec rateSpec, ActivityDef def)A token filler adds tokens to aTokenPoolat some rate.TokenPool(RateSpec rateSpec)This constructor tries to pick reasonable defaults for the token pool for a given rate spec.
-