Interface | Description |
---|---|
RetryPolicy |
Attempts to retry code from a do/while loop.
|
Class | Description |
---|---|
ExponentialBackoffRetry |
Each retry will cause a sleep to happen.
|
SleepingRetry |
A retry policy that uses thread sleeping for the delay.
|
RetryPolicy
which is designed to work with do/while loops.
Example
{ @code RetryPolicy retry = new ExponentialBackoffRetry(50, Constants.SECOND_MS, MAX_CONNECT_TRY); do { // work to retry } while (retry.attemptRetry()); }
Copyright © 2015. All Rights Reserved.