Enum DefaultRetryToken.TokenState
java.lang.Object
java.lang.Enum<DefaultRetryToken.TokenState>
software.amazon.awssdk.retries.internal.DefaultRetryToken.TokenState
- All Implemented Interfaces:
Serializable
,Comparable<DefaultRetryToken.TokenState>
- Enclosing class:
DefaultRetryToken
Set of possibles states on which the RetryToken can be, in-progress, succeeded and all the possible failure modes.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe request operation is in-progress.The request operation failed with max retries reached.The request operation failed with non-retryable exception caught.The request operation concluded successfully.The request operation failed with token acquisition failure. -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultRetryToken.TokenState
Returns the enum constant of this type with the specified name.static DefaultRetryToken.TokenState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
IN_PROGRESS
The request operation is in-progress. -
SUCCEEDED
The request operation concluded successfully. -
TOKEN_ACQUISITION_FAILED
The request operation failed with token acquisition failure. -
MAX_RETRIES_REACHED
The request operation failed with max retries reached. -
NON_RETRYABLE_EXCEPTION
The request operation failed with non-retryable exception caught.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-