Class RetryOperator<T>
- java.lang.Object
-
- io.github.resilience4j.reactor.retry.RetryOperator<T>
-
- Type Parameters:
T- the value type of the upstream and downstream
- All Implemented Interfaces:
java.util.function.Function<org.reactivestreams.Publisher<T>,org.reactivestreams.Publisher<T>>,java.util.function.UnaryOperator<org.reactivestreams.Publisher<T>>
public class RetryOperator<T> extends java.lang.Object implements java.util.function.UnaryOperator<org.reactivestreams.Publisher<T>>A Reactor Retry operator which wraps a reactive type in a Retry.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.reactivestreams.Publisher<T>apply(org.reactivestreams.Publisher<T> publisher)static <T> RetryOperator<T>of(io.github.resilience4j.retry.Retry retry)Creates a retry.
-
-
-
Method Detail
-
of
public static <T> RetryOperator<T> of(io.github.resilience4j.retry.Retry retry)
Creates a retry.- Type Parameters:
T- the value type of the upstream and downstream- Parameters:
retry- the retry- Returns:
- a RetryOperator
-
-