public class ExponentialBackoffRetry extends SleepingRetry
| Constructor and Description |
|---|
ExponentialBackoffRetry(int baseSleepTimeMs,
int maxSleepMs,
int maxRetries) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
getSleepTime()
How long to sleep before the next retry is performed.
|
attemptRetry, getRetryCount, getSleepUnitpublic ExponentialBackoffRetry(int baseSleepTimeMs,
int maxSleepMs,
int maxRetries)
protected long getSleepTime()
SleepingRetrySleepingRetry.getSleepUnit(), so all time given here must match the unit provided.getSleepTime in class SleepingRetryCopyright © 2015. All Rights Reserved.