@Immutable public final class RetryPolicy extends Object implements ToCopyableBuilder<RetryPolicy.Builder,RetryPolicy>
ClientOverrideConfiguration.retryPolicy
or the builder()
} can be used
to construct a retry policy from SDK provided policies or policies that directly implement BackoffStrategy
and/or
RetryCondition
.
When using the builder()
the SDK will use default values for fields that are not provided. The default number of
retries that will be used is SdkDefaultRetrySettings.DEFAULT_MAX_RETRIES
. The default retry condition is
RetryCondition.DEFAULT
and the default backoff strategy is BackoffStrategy.defaultStrategy()
.Modifier and Type | Class and Description |
---|---|
static class |
RetryPolicy.Builder
Builder for a
RetryPolicy . |
Modifier and Type | Field and Description |
---|---|
static RetryPolicy |
DEFAULT |
static RetryPolicy |
NONE |
Modifier and Type | Method and Description |
---|---|
BackoffStrategy |
backoffStrategy() |
static RetryPolicy.Builder |
builder() |
Integer |
numRetries() |
RetryCondition |
retryCondition() |
RetryPolicy.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
copy
public static final RetryPolicy DEFAULT
public static final RetryPolicy NONE
public RetryCondition retryCondition()
public BackoffStrategy backoffStrategy()
public Integer numRetries()
public static RetryPolicy.Builder builder()
public RetryPolicy.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<RetryPolicy.Builder,RetryPolicy>
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.