Class NewRateLimitOperator<T>
java.lang.Object
com.github.alex1304.ultimategdbot.api.NewRateLimitOperator<T>
- Type Parameters:
T
- the type of the transformed sequence
- All Implemented Interfaces:
Function<org.reactivestreams.Publisher<T>,org.reactivestreams.Publisher<T>>
public class NewRateLimitOperator<T> extends Object implements Function<org.reactivestreams.Publisher<T>,org.reactivestreams.Publisher<T>>
A rate limiting operator based off the token bucket algorithm. From
Rate Limiting in rxjs.
-
Constructor Summary
Constructors Constructor Description NewRateLimitOperator(int capacity, Duration refillPeriod)
NewRateLimitOperator(int capacity, Duration refillPeriod, reactor.core.scheduler.Scheduler delayScheduler)
-
Method Summary
-
Constructor Details
-
NewRateLimitOperator
-
NewRateLimitOperator
public NewRateLimitOperator(int capacity, Duration refillPeriod, reactor.core.scheduler.Scheduler delayScheduler)
-
-
Method Details