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