public enum RetryMode extends Enum<RetryMode>
Enum Constant and Description |
---|
ADAPTIVE
Adaptive retry mode dynamically limits the rate of AWS requests to maximize success rate.
|
LEGACY
The legacy mode that only enables throttled retry for transient errors
|
STANDARD
Standard mode is built on top of legacy mode and has throttled retry enabled for throttling errors apart from transient
errors.
|
Modifier and Type | Method and Description |
---|---|
static RetryMode |
fromName(String value)
Returns a retry mode enum corresponding to the given retryMode name.
|
String |
getName() |
static RetryMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RetryMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RetryMode LEGACY
public static final RetryMode STANDARD
RetryMode.LEGACY
.public static final RetryMode ADAPTIVE
Warning: Adaptive retry mode assumes that the client is working against a single resource (e.g. one DynamoDB Table or one S3 Bucket). If you use a single client for multiple resources, throttling or outages associated with one resource will result in increased latency and failures when accessing all other resources via the same client. When using adaptive retry mode, we recommend using a single client per resource.
RetryPolicy.isFastFailRateLimiting()
public static RetryMode[] values()
for (RetryMode c : RetryMode.values()) System.out.println(c);
public static RetryMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
Copyright © 2024. All rights reserved.