Class RateLimitedConsumer<T>
java.lang.Object
com.atlassian.confluence.util.misc.RateLimitedConsumer<T>
- All Implemented Interfaces:
Consumer<T>
Ignores calls to the wrapped consumer if the same key has been called within the minimum interval. Thread safe.
- Since:
- 9.3
-
Constructor Summary
ConstructorsConstructorDescriptionRateLimitedConsumer
(Consumer<T> callback, long minimumIntervalMs) Creates a new rate limited consumer. -
Method Summary