Class ExponentialBackoffStrategy


  • public class ExponentialBackoffStrategy
    extends Object
    Simple exponential back-off strategy, that is used for re-tries on SQS interactions.
    • Constructor Detail

      • ExponentialBackoffStrategy

        public ExponentialBackoffStrategy​(long delayInterval,
                                          long initialDelay,
                                          long maxDelay)
    • Method Detail

      • delayBeforeNextRetry

        public long delayBeforeNextRetry​(int retriesAttempted)
        Returns the delay before the next attempt.
        Parameters:
        retriesAttempted -
        Returns:
        The delay before the next attempt.