public interface RetryPolicy
BceClientConfiguration.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_DELAY_IN_MILLIS
Maximum exponential back-off time before retrying a request.
|
static int |
DEFAULT_MAX_ERROR_RETRY
SDK default max retry count.
|
static DefaultRetryPolicy |
DEFAULT_RETRY_POLICY
SDK default retry policy.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getDelayBeforeNextRetryInMillis(BceClientException exception,
int retriesAttempted)
Returns the delay (in milliseconds) before next retry attempt.
|
long |
getMaxDelayInMillis()
Returns the maximum delay time (in milliseconds) before retrying a request.
|
int |
getMaxErrorRetry()
Returns the maximum number of retry attempts.
|
static final int DEFAULT_MAX_ERROR_RETRY
static final int DEFAULT_MAX_DELAY_IN_MILLIS
static final DefaultRetryPolicy DEFAULT_RETRY_POLICY
int getMaxErrorRetry()
long getMaxDelayInMillis()
long getDelayBeforeNextRetryInMillis(BceClientException exception, int retriesAttempted)
exception - the exception from the failed request, represented as an BceClientException object.retriesAttempted - the number of times the current request has been attempted
(not including the next attempt after the delay).Copyright © 2021. All rights reserved.