toggle menu
kresil
0.0.1
common
switch theme
search in API
kresil-lib
/
kresil.ratelimiter.algorithm
/
RateLimitingAlgorithm
/
TokenBucket
/
TokenBucket
Token
Bucket
constructor
(
totalPermits
:
Int
,
replenishmentPeriod
:
Duration
,
queueLength
:
Int
)
(
source
)
Parameters
replenishment
Period
The time period that the rate limiter will use to refill the bucket with
1 more token
.