Uses of Interface
dev.relism.flash.ext.limiter.RateLimitStrategy
Packages that use RateLimitStrategy
-
Uses of RateLimitStrategy in dev.relism.flash.ext.limiter
Methods in dev.relism.flash.ext.limiter that return RateLimitStrategyModifier and TypeMethodDescriptionabstract RateLimitStrategyLimitStrategy.create()Creates a fresh, statelessRateLimitStrategyinstance for this algorithm.LimitConfig.strategy()Returns the value of thestrategyrecord component.Constructors in dev.relism.flash.ext.limiter with parameters of type RateLimitStrategyModifierConstructorDescriptionLimitConfig(int limit, long windowMs, RateLimitStrategy strategy) Creates an instance of aLimitConfigrecord class. -
Uses of RateLimitStrategy in dev.relism.flash.ext.limiter.strategy
Classes in dev.relism.flash.ext.limiter.strategy that implement RateLimitStrategyModifier and TypeClassDescriptionfinal classFixed-window rate limit: allows up toLimitConfig.limit()requests per window ofLimitConfig.windowMs()milliseconds.final classSliding-window counter rate limit: approximates a true sliding window by interpolating between the previous fixed window's count and the current window's count.final classToken-bucket rate limit: tokens refill continuously at a rate oflimit / windowMstokens per millisecond, up to a maximum oflimittokens.