toggle menu
kresil
0.0.1
common
switch theme
search in API
kresil-lib
/
kresil.ratelimiter.algorithm
/
RateLimitingAlgorithm
/
SlidingWindowCounter
/
SlidingWindowCounter
Sliding
Window
Counter
constructor
(
totalPermits
:
Int
,
replenishmentPeriod
:
Duration
,
segments
:
Int
,
queueLength
:
Int
)
(
source
)
Parameters
replenishment
Period
The duration of each time segment.
segments
The number of segments that the time window is divided into.