Package reactivefeign.retry
Class BasicReactiveRetryPolicy
- java.lang.Object
-
- reactivefeign.retry.SimpleReactiveRetryPolicy
-
- reactivefeign.retry.BasicReactiveRetryPolicy
-
- All Implemented Interfaces:
ReactiveRetryPolicy
public class BasicReactiveRetryPolicy extends SimpleReactiveRetryPolicy
- Author:
- Sergii Karpenko
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBasicReactiveRetryPolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SimpleReactiveRetryPolicyretry(int maxRetries)longretryDelay(java.lang.Throwable error, int attemptNo)static SimpleReactiveRetryPolicyretryWithBackoff(int maxRetries, long periodInMs)static SimpleReactiveRetryPolicyretryWithBackoff(int maxRetries, long periodInMs, reactor.core.scheduler.Scheduler scheduler)-
Methods inherited from class reactivefeign.retry.SimpleReactiveRetryPolicy
toRetryFunction
-
-
-
-
Method Detail
-
retry
public static SimpleReactiveRetryPolicy retry(int maxRetries)
-
retryWithBackoff
public static SimpleReactiveRetryPolicy retryWithBackoff(int maxRetries, long periodInMs)
-
retryWithBackoff
public static SimpleReactiveRetryPolicy retryWithBackoff(int maxRetries, long periodInMs, reactor.core.scheduler.Scheduler scheduler)
-
retryDelay
public long retryDelay(java.lang.Throwable error, int attemptNo)- Specified by:
retryDelayin classSimpleReactiveRetryPolicy- Returns:
- -1 if should not be retried, 0 if retry immediately
-
-