TokenBucketLimiter
constructor(capacity: Long, refillTokenInterval: Duration, clock: Clock, stateStorage: StateStorage = MemoryStateStorage())
Parameters
capacity
the maximum number of tokens that can be stored in the bucket
refillTokenInterval
the interval at which tokens are added to the bucket
clock
the clock to use to get the current time
stateStorage
the state storage to use to store the bucket state