public class RetryOnce extends RetryPolicy
RetryPolicy.RetryCancelled| Modifier and Type | Field and Description |
|---|---|
boolean |
retryAttempted |
startRetryTime| Constructor and Description |
|---|
RetryOnce(int msBeforeRetry)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldRetry(ConnectionState connectionState)
Should another retry be attempted according to the policy
|
retrypublic RetryOnce(int msBeforeRetry)
msBeforeRetry - milliseconds before retryingpublic boolean shouldRetry(ConnectionState connectionState)
RetryPolicyshouldRetry in class RetryPolicyconnectionState - current connection state