public class BoundedExponentialBackoff extends ExponentialBackoff
RetryPolicy.RetryPolicyFactory| Constructor and Description |
|---|
BoundedExponentialBackoff(long baseSleepTimeMs,
int maxSleepTimeMs,
int max)
Deprecated.
|
BoundedExponentialBackoff(long baseSleepTimeMs,
long maxSleepTimeMs,
int max) |
| Modifier and Type | Method and Description |
|---|---|
RetryPolicy |
duplicate()
Duplicate this policy into a fresh instance
|
long |
getMaxSleepTimeMs() |
long |
getSleepTimeMs() |
java.lang.String |
toString() |
getBaseSleepTimeMsallowRetry, begin, failure, getAttemptCount, getMax, getMaxAttemptCount, successpublic BoundedExponentialBackoff(long baseSleepTimeMs,
long maxSleepTimeMs,
int max)
@Deprecated
public BoundedExponentialBackoff(long baseSleepTimeMs,
int maxSleepTimeMs,
int max)
public long getSleepTimeMs()
getSleepTimeMs in class ExponentialBackoffpublic RetryPolicy duplicate()
RetryPolicyduplicate in interface RetryPolicyduplicate in class ExponentialBackoffpublic long getMaxSleepTimeMs()
public java.lang.String toString()
toString in class ExponentialBackoff