Class ExponentialBackoffStrategy

java.lang.Object
com.amazon.sqs.javamessaging.util.ExponentialBackoffStrategy

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

    • ExponentialBackoffStrategy

      public ExponentialBackoffStrategy(long delayInterval, long initialDelay, long maxDelay)
  • Method Details

    • delayBeforeNextRetry

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