T - the value typepublic class CircuitBreakerOperator<T>
extends java.lang.Object
implements java.util.function.UnaryOperator<org.reactivestreams.Publisher<T>>
CallNotPermittedException if the CircuitBreaker is OPEN.| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<T> |
apply(org.reactivestreams.Publisher<T> publisher) |
static <T> CircuitBreakerOperator<T> |
of(io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker)
Creates a CircuitBreakerOperator.
|
public static <T> CircuitBreakerOperator<T> of(io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker)
T - the value type of the upstream and downstreamcircuitBreaker - the circuit breaker