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 Summary
Constructors Constructor Description ExponentialBackoffStrategy(long delayInterval, long initialDelay, long maxDelay)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
delayBeforeNextRetry(int retriesAttempted)
Returns the delay before the next attempt.
-