Interface RetryPolicy<S>

    • Method Detail

      • createRetryState

        S createRetryState()
      • nextRetryTimestamp

        long nextRetryTimestamp​(long now,
                                Throwable lastError,
                                S retryState)
      • exponentialBackoff

        static RetryPolicy<?> exponentialBackoff​(long initialDelay,
                                                 long maxDelay,
                                                 double exponent)
      • exponentialBackoff

        static RetryPolicy<?> exponentialBackoff​(long initialDelay,
                                                 long maxDelay)
      • withMaxTotalRetryCount

        default RetryPolicy<io.activej.common.tuple.Tuple2<io.activej.common.ref.RefInt,​S>> withMaxTotalRetryCount​(int maxRetryCount)
      • withMaxTotalRetryTimeout

        default RetryPolicy<?> withMaxTotalRetryTimeout​(Duration maxRetryTimeout)