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>>
  • Constructor Details

    • DelegatingRetryPolicy

      protected DelegatingRetryPolicy(RetryPolicy<DS> policy)
  • Method Details

    • createRetryState

      public final io.activej.common.tuple.Tuple2<S,DS> createRetryState()
      Specified by:
      createRetryState in interface RetryPolicy<S>
    • doCreateRetryState

      protected abstract S doCreateRetryState()
    • nextRetryTimestamp

      public final long nextRetryTimestamp(long now, Exception lastError, io.activej.common.tuple.Tuple2<S,DS> retryState)
      Specified by:
      nextRetryTimestamp in interface RetryPolicy<S>
    • nextRetryTimestamp

      public abstract long nextRetryTimestamp(long now, Exception lastError, S retryState, DS delegateRetryState)