public class PredefinedRetryPolicies
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PredefinedRetryPolicies.SDKDefaultRetryCondition
The default implementation of RetryCondition used by the SDK.
|
Modifier and Type | Field and Description |
---|---|
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 int |
DYNAMODB_DEFAULT_MAX_ERROR_RETRY
Default max retry count for DynamoDB client
|
static RetryPolicy |
NO_RETRY_POLICY
No retry policy
|
Constructor and Description |
---|
PredefinedRetryPolicies() |
Modifier and Type | Method and Description |
---|---|
static RetryPolicy |
getDefaultRetryPolicy() |
static RetryPolicy |
getDefaultRetryPolicyWithCustomMaxRetries(int maxErrorRetry) |
static RetryPolicy |
getDynamoDBDefaultRetryPolicy() |
static RetryPolicy |
getDynamoDBDefaultRetryPolicyWithCustomMaxRetries(int maxErrorRetry) |
public static final RetryPolicy NO_RETRY_POLICY
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 RetryPolicy getDefaultRetryPolicy()
ClientConfiguration.setMaxErrorRetry(int)
public static RetryPolicy getDynamoDBDefaultRetryPolicy()
ClientConfiguration.setMaxErrorRetry(int)
public static RetryPolicy getDefaultRetryPolicyWithCustomMaxRetries(int maxErrorRetry)
maxErrorRetry
- the max error retry count.public static RetryPolicy getDynamoDBDefaultRetryPolicyWithCustomMaxRetries(int maxErrorRetry)
maxErrorRetry
- the max error retry count.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.