T - the value typepublic class RateLimiterOperator<T>
extends java.lang.Object
implements java.util.function.UnaryOperator<org.reactivestreams.Publisher<T>>
RequestNotPermitted if the rate
limit is exceeded.| 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.
|
public static <T> RateLimiterOperator<T> of(io.github.resilience4j.ratelimiter.RateLimiter rateLimiter)
T - the value type of the upstream and downstreamrateLimiter - the Rate limiter