|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.retry.PredefinedRetryPolicies
public class PredefinedRetryPolicies
This class includes a set of pre-defined retry policies, including default policies used by SDK.
Nested Class Summary | |
---|---|
static class |
PredefinedRetryPolicies.SDKDefaultRetryCondition
The default implementation of RetryCondition used by the SDK. |
Field Summary | |
---|---|
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. |
static RetryPolicy |
DYNAMODB_DEFAULT
Default policy for DynamoDB client |
static RetryPolicy.BackoffStrategy |
DYNAMODB_DEFAULT_BACKOFF_STRATEGY
The default back-off strategy for DynamoDB client, which increases exponentially up to a max amount of delay. |
static int |
DYNAMODB_DEFAULT_MAX_ERROR_RETRY
Default max retry count for DynamoDB client |
Constructor Summary | |
---|---|
PredefinedRetryPolicies()
|
Method Summary | |
---|---|
static RetryPolicy |
getDefaultRetryPolicy()
Returns the SDK default retry policy. |
static RetryPolicy |
getDefaultRetryPolicyWithCustomMaxRetries(int maxErrorRetry)
Returns the SDK default retry policy with the specified max retry count. |
static RetryPolicy |
getDynamoDBDefaultRetryPolicy()
Returns the default retry policy for DynamoDB client. |
static RetryPolicy |
getDynamoDBDefaultRetryPolicyWithCustomMaxRetries(int maxErrorRetry)
Returns the default retry policy for DynamoDB client with the specified max retry count. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_MAX_ERROR_RETRY
public static final RetryPolicy DEFAULT
public static final int DYNAMODB_DEFAULT_MAX_ERROR_RETRY
public static final RetryPolicy DYNAMODB_DEFAULT
public static final RetryPolicy.RetryCondition DEFAULT_RETRY_CONDITION
public static final RetryPolicy.BackoffStrategy DEFAULT_BACKOFF_STRATEGY
public static final RetryPolicy.BackoffStrategy DYNAMODB_DEFAULT_BACKOFF_STRATEGY
Constructor Detail |
---|
public PredefinedRetryPolicies()
Method Detail |
---|
public static RetryPolicy getDefaultRetryPolicy()
ClientConfiguration.setMaxErrorRetry(int)
public static RetryPolicy getDynamoDBDefaultRetryPolicy()
ClientConfiguration.setMaxErrorRetry(int)
public static RetryPolicy getDefaultRetryPolicyWithCustomMaxRetries(int maxErrorRetry)
public static RetryPolicy getDynamoDBDefaultRetryPolicyWithCustomMaxRetries(int maxErrorRetry)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |