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, getSleepUnit
public ExponentialBackoffRetry(int baseSleepTimeMs, int maxSleepMs, int maxRetries)
protected long getSleepTime()
SleepingRetry
SleepingRetry.getSleepUnit()
, so all time given here must match the unit provided.getSleepTime
in class SleepingRetry
Copyright © 2015. All Rights Reserved.