Package io.activej.promise
Class RetryPolicy.SimpleRetryPolicy
java.lang.Object
io.activej.promise.RetryPolicy.SimpleRetryPolicy
- All Implemented Interfaces:
RetryPolicy<RetryPolicy.SimpleRetryState>
- Enclosing interface:
- RetryPolicy<S>
public abstract static class RetryPolicy.SimpleRetryPolicy
extends Object
implements RetryPolicy<RetryPolicy.SimpleRetryState>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.activej.promise.RetryPolicy
RetryPolicy.DelegatingRetryPolicy<S,DS>, RetryPolicy.SimpleRetryPolicy, RetryPolicy.SimpleRetryState, RetryPolicy.StatelessRetryPolicy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract longnextRetryTimestamp(long now, Exception lastError, int retryCount, long firstRetryTimestamp) final longnextRetryTimestamp(long now, Exception lastError, RetryPolicy.SimpleRetryState retryState) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.activej.promise.RetryPolicy
withMaxTotalRetryCount, withMaxTotalRetryTimeout
-
Constructor Details
-
SimpleRetryPolicy
public SimpleRetryPolicy()
-
-
Method Details
-
createRetryState
- Specified by:
createRetryStatein interfaceRetryPolicy<RetryPolicy.SimpleRetryState>
-
nextRetryTimestamp
public final long nextRetryTimestamp(long now, Exception lastError, RetryPolicy.SimpleRetryState retryState) - Specified by:
nextRetryTimestampin interfaceRetryPolicy<RetryPolicy.SimpleRetryState>
-
nextRetryTimestamp
public abstract long nextRetryTimestamp(long now, Exception lastError, int retryCount, long firstRetryTimestamp)
-