Class FibonacciRetryStrategy
- java.lang.Object
-
- software.amazon.cloudwatchlogs.emf.sinks.retry.FibonacciRetryStrategy
-
- All Implemented Interfaces:
RetryStrategy
public class FibonacciRetryStrategy extends java.lang.Object implements RetryStrategy
A Fibonacci sequence with an upper bound. Once the upper limit is hit, all subsequent calls to `next()` will return the provided limit.
-
-
Constructor Summary
Constructors Constructor Description FibonacciRetryStrategy(int start, int upperBound, int maxJitter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intnext()Gets the amount of time to wait in millis before retrying
-
-
-
Method Detail
-
next
public int next()
Description copied from interface:RetryStrategyGets the amount of time to wait in millis before retrying- Specified by:
nextin interfaceRetryStrategy- Returns:
- millis to wait before retrying
-
-