Retry with exponential backoff + jitter for a max number of times
Retry with exponential backoff + jitter forever
(Since version ) see corresponding Javadoc for more information.
A retry policy which will back off using a configurable policy which incorporates random jitter. This has the advantage of reducing contention if you have threaded clients using the same service.
The following pre-made jitter algorithms are available for you to use:
You can choose one like this:
If a jitter policy isn't in scope, it will use retry.Jitter.full by default which tends to cause clients slightly less work at the cost of slightly more time.
For more information about the algorithms, see the following article:
https://www.awsarchitectureblog.com/2015/03/backoff.html