Package reactivefeign.retry
Class SimpleReactiveRetryPolicy
- java.lang.Object
-
- reactivefeign.retry.SimpleReactiveRetryPolicy
-
- All Implemented Interfaces:
ReactiveRetryPolicy
- Direct Known Subclasses:
BasicReactiveRetryPolicy
public abstract class SimpleReactiveRetryPolicy extends java.lang.Object implements ReactiveRetryPolicy
- Author:
- Sergii Karpenko
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface reactivefeign.retry.ReactiveRetryPolicy
ReactiveRetryPolicy.Builder
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSimpleReactiveRetryPolicy(reactor.core.scheduler.Scheduler scheduler)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract longretryDelay(java.lang.Throwable error, int attemptNo)java.util.function.Function<reactor.core.publisher.Flux<reactor.util.retry.Retry.RetrySignal>,reactor.core.publisher.Flux<java.lang.Throwable>>toRetryFunction()
-
-
-
Method Detail
-
retryDelay
public abstract long retryDelay(java.lang.Throwable error, int attemptNo)- Parameters:
error-attemptNo-- Returns:
- -1 if should not be retried, 0 if retry immediately
-
toRetryFunction
public java.util.function.Function<reactor.core.publisher.Flux<reactor.util.retry.Retry.RetrySignal>,reactor.core.publisher.Flux<java.lang.Throwable>> toRetryFunction()
- Specified by:
toRetryFunctionin interfaceReactiveRetryPolicy
-
-