public class ExponentialBackoff extends SleepingRetryPolicy
RetryPolicy.RetryPolicyFactory| Constructor and Description |
|---|
ExponentialBackoff(int baseSleepTimeMs,
int maxAttempts)
Deprecated.
|
ExponentialBackoff(long baseSleepTimeMs,
int maxAttempts) |
| Modifier and Type | Method and Description |
|---|---|
RetryPolicy |
duplicate()
Duplicate this policy into a fresh instance
|
long |
getBaseSleepTimeMs() |
long |
getSleepTimeMs() |
java.lang.String |
toString() |
allowRetry, begin, failure, getAttemptCount, getMax, getMaxAttemptCount, successpublic ExponentialBackoff(long baseSleepTimeMs,
int maxAttempts)
@Deprecated
public ExponentialBackoff(int baseSleepTimeMs,
int maxAttempts)
public long getSleepTimeMs()
getSleepTimeMs in class SleepingRetryPolicypublic long getBaseSleepTimeMs()
public RetryPolicy duplicate()
RetryPolicypublic java.lang.String toString()
toString in class SleepingRetryPolicy