The IntervalCounter allows to count the number of calls to increment() over a duration of interval. This utility can be used to conditionally throttle a frequent task when a certain threshold is reached.
IntervalCounter
increment()
interval
The
IntervalCounterallows to count the number of calls toincrement()over a duration ofinterval. This utility can be used to conditionally throttle a frequent task when a certain threshold is reached.