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 Modifier Constructor Description protectedDelegatingRetryPolicy(RetryPolicy<DS> policy)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description io.activej.common.tuple.Tuple2<S,DS>createRetryState()protected abstract SdoCreateRetryState()longnextRetryTimestamp(long now, Throwable lastError, io.activej.common.tuple.Tuple2<S,DS> retryState)abstract longnextRetryTimestamp(long now, Throwable lastError, S retryState, DS delegateRetryState)-
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
-
-
-
-
Constructor Detail
-
DelegatingRetryPolicy
protected DelegatingRetryPolicy(RetryPolicy<DS> policy)
-
-
Method Detail
-
createRetryState
public final io.activej.common.tuple.Tuple2<S,DS> createRetryState()
- Specified by:
createRetryStatein interfaceRetryPolicy<S>
-
doCreateRetryState
protected abstract S doCreateRetryState()
-
nextRetryTimestamp
public final long nextRetryTimestamp(long now, Throwable lastError, io.activej.common.tuple.Tuple2<S,DS> retryState)- Specified by:
nextRetryTimestampin interfaceRetryPolicy<S>
-
-