T - the value type of the upstream and downstreampublic class RateLimiterOperator<T>
extends java.lang.Object
implements java.util.function.Function<org.reactivestreams.Publisher<T>,org.reactivestreams.Publisher<T>>
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<T> |
apply(org.reactivestreams.Publisher<T> publisher) |
static <T> RateLimiterOperator<T> |
of(io.github.resilience4j.ratelimiter.RateLimiter rateLimiter)
Creates a RateLimiterOperator.
|
static <T> RateLimiterOperator<T> |
of(io.github.resilience4j.ratelimiter.RateLimiter rateLimiter,
reactor.core.scheduler.Scheduler scheduler)
Creates a RateLimiterOperator.
|
public static <T> RateLimiterOperator<T> of(io.github.resilience4j.ratelimiter.RateLimiter rateLimiter)
T - the value type of the upstream and downstreamrateLimiter - the Rate limiterpublic static <T> RateLimiterOperator<T> of(io.github.resilience4j.ratelimiter.RateLimiter rateLimiter, reactor.core.scheduler.Scheduler scheduler)
T - the value type of the upstream and downstreamrateLimiter - the Rate limiterscheduler - the Scheduler where to publish