Package io.activej.promise
Class RetryPolicy.DelegatingRetryPolicy<S,DS>
java.lang.Object
io.activej.promise.RetryPolicy.DelegatingRetryPolicy<S,DS>
- All Implemented Interfaces:
RetryPolicy<io.activej.common.tuple.Tuple2<S,DS>>
- Enclosing interface:
- RetryPolicy<S>
public abstract static class RetryPolicy.DelegatingRetryPolicy<S,DS>
extends Object
implements RetryPolicy<io.activej.common.tuple.Tuple2<S,DS>>
-
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 TypeMethodDescriptionprotected abstract Sfinal longnextRetryTimestamp(long now, Exception lastError, io.activej.common.tuple.Tuple2<S, DS> retryState) abstract longnextRetryTimestamp(long now, Exception lastError, S retryState, DS delegateRetryState) 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
-
DelegatingRetryPolicy
-
-
Method Details
-
createRetryState
- Specified by:
createRetryStatein interfaceRetryPolicy<S>
-
doCreateRetryState
-
nextRetryTimestamp
public final long nextRetryTimestamp(long now, Exception lastError, io.activej.common.tuple.Tuple2<S, DS> retryState) - Specified by:
nextRetryTimestampin interfaceRetryPolicy<S>
-
nextRetryTimestamp
-