Class 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 Detail

      • DelegatingRetryPolicy

        protected DelegatingRetryPolicy​(RetryPolicy<DS> policy)
    • Method Detail

      • doCreateRetryState

        protected abstract S doCreateRetryState()
      • nextRetryTimestamp

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

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