public class PredefinedRetryPolicies extends Object
限定符和类型 | 类和说明 |
---|---|
static class |
PredefinedRetryPolicies.SDKDefaultRetryCondition
The default implementation of RetryCondition used by the SDK.
|
限定符和类型 | 字段和说明 |
---|---|
static RetryPolicy |
DEFAULT
SDK default retry policy
|
static RetryPolicy.BackoffStrategy |
DEFAULT_BACKOFF_STRATEGY
The SDK default back-off strategy, which increases exponentially up to a
max amount of delay.
|
static int |
DEFAULT_MAX_ERROR_RETRY
SDK default max retry count
|
static RetryPolicy.RetryCondition |
DEFAULT_RETRY_CONDITION
The SDK default retry condition, which checks for various conditions in
the following order:
Never retry on requests with non-repeatable content;
Retry on client exceptions caused by IOException;
Retry on service exceptions that are either 500 internal server
errors, 503 service unavailable errors, service throttling errors or
clock skew errors.
|
构造器和说明 |
---|
PredefinedRetryPolicies() |
限定符和类型 | 方法和说明 |
---|---|
static RetryPolicy |
getDefaultRetryPolicy()
Returns the SDK default retry policy.
|
static org.apache.http.client.HttpRequestRetryHandler |
getDefaultRetryPolicyWithCustomMaxRetries(int maxErrorRetry)
Returns the SDK default retry policy with the specified max retry count.
|
public static int DEFAULT_MAX_ERROR_RETRY
public static final RetryPolicy DEFAULT
public static final RetryPolicy.BackoffStrategy DEFAULT_BACKOFF_STRATEGY
public static final RetryPolicy.RetryCondition DEFAULT_RETRY_CONDITION
public static RetryPolicy getDefaultRetryPolicy()
public static org.apache.http.client.HttpRequestRetryHandler getDefaultRetryPolicyWithCustomMaxRetries(int maxErrorRetry)
Copyright © 2016. All rights reserved.