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 Constructor Description SimpleRetryPolicy()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description RetryPolicy.SimpleRetryStatecreateRetryState()abstract longnextRetryTimestamp(long now, Throwable lastError, int retryCount, long firstRetryTimestamp)longnextRetryTimestamp(long now, Throwable lastError, RetryPolicy.SimpleRetryState retryState)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.activej.promise.RetryPolicy
withMaxTotalRetryCount, withMaxTotalRetryTimeout
-
-
-
-
Method Detail
-
createRetryState
public final RetryPolicy.SimpleRetryState createRetryState()
- Specified by:
createRetryStatein interfaceRetryPolicy<RetryPolicy.SimpleRetryState>
-
nextRetryTimestamp
public final long nextRetryTimestamp(long now, Throwable lastError, RetryPolicy.SimpleRetryState retryState)- Specified by:
nextRetryTimestampin interfaceRetryPolicy<RetryPolicy.SimpleRetryState>
-
nextRetryTimestamp
public abstract long nextRetryTimestamp(long now, Throwable lastError, int retryCount, long firstRetryTimestamp)
-
-