SlidingWindowCounter

constructor(totalPermits: Int, replenishmentPeriod: Duration, segments: Int, queueLength: Int)(source)

Parameters

replenishmentPeriod

The duration of each time segment.

segments

The number of segments that the time window is divided into.