public class RetryOnce extends RetryPolicy
| Modifier and Type | Field and Description |
|---|---|
boolean |
retryAttempted |
msBeforeRetry| 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
|
getRetryTimeInMs, retrypublic RetryOnce(int msBeforeRetry)
msBeforeRetry - milliseconds before retryingpublic boolean shouldRetry(ConnectionState connectionState)
RetryPolicyshouldRetry in class RetryPolicyconnectionState - current connection state