public class RetryNTimes extends RetryPolicy
RetryPolicy.RetryCancelledstartRetryTime| Constructor and Description |
|---|
RetryNTimes(int msBeforeRetry,
int timesToRetry)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldRetry(ConnectionState connectionState)
Should another retry be attempted according to the policy
|
retrypublic RetryNTimes(int msBeforeRetry,
int timesToRetry)
msBeforeRetry - milliseconds before retryingtimesToRetry - number of times to retrypublic boolean shouldRetry(ConnectionState connectionState)
RetryPolicyshouldRetry in class RetryPolicyconnectionState - current connection state