Package discord4j.common.operator
Class RateLimitOperator<T>
java.lang.Object
discord4j.common.operator.RateLimitOperator<T>
- Type Parameters:
T
- the type of the transformed sequence
A rate limiting operator based off the token bucket algorithm. From
Rate Limiting in rxjs.
-
Constructor Summary
ConstructorDescriptionRateLimitOperator
(int capacity, Duration refillPeriod, Scheduler delayScheduler) RateLimitOperator
(int capacity, Duration refillPeriod, Scheduler delayScheduler, Scheduler publishScheduler) -
Method Summary