Package io.activej.promise
Interface RetryPolicy<S>
- All Known Implementing Classes:
RetryPolicy.DelegatingRetryPolicy,RetryPolicy.SimpleRetryPolicy,RetryPolicy.StatelessRetryPolicy
public interface RetryPolicy<S>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionstatic RetryPolicy<?>exponentialBackoff(long initialDelay, long maxDelay) static RetryPolicy<?>exponentialBackoff(long initialDelay, long maxDelay, double exponent) static RetryPolicy<?>exponentialBackoff(Duration initialDelay, Duration maxDelay) static RetryPolicy<?>exponentialBackoff(Duration initialDelay, Duration maxDelay, double exponent) static RetryPolicy<Void>fixedDelay(long delay) static RetryPolicy<Void>fixedDelay(Duration delay) static RetryPolicy<Void>longnextRetryTimestamp(long now, Exception lastError, S retryState) static RetryPolicy<Void>noRetry()default RetryPolicy<io.activej.common.tuple.Tuple2<io.activej.common.ref.RefInt,S>> withMaxTotalRetryCount(int maxRetryCount) default RetryPolicy<?>withMaxTotalRetryTimeout(Duration maxRetryTimeout)
-
Method Details
-
createRetryState
S createRetryState() -
nextRetryTimestamp
-
noRetry
-
immediateRetry
-
fixedDelay
-
fixedDelay
-
exponentialBackoff
-
exponentialBackoff
-
exponentialBackoff
-
exponentialBackoff
-
withMaxTotalRetryCount
default RetryPolicy<io.activej.common.tuple.Tuple2<io.activej.common.ref.RefInt,S>> withMaxTotalRetryCount(int maxRetryCount) -
withMaxTotalRetryTimeout
-