public class RetryWithTimeout extends RetryPolicy
RetryPolicy.RetryCancelledstartRetryTime| Constructor and Description |
|---|
RetryWithTimeout(int msBeforeRetry,
int timeoutInMs)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldRetry(ConnectionState connectionState)
Should another retry be attempted according to the policy
|
retrypublic RetryWithTimeout(int msBeforeRetry,
int timeoutInMs)
msBeforeRetry - milliseconds before retryingtimeoutInMs - timeout in mspublic boolean shouldRetry(ConnectionState connectionState)
RetryPolicyshouldRetry in class RetryPolicyconnectionState - current connection state