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
public static enum DefaultRetryToken.TokenState extends Enum<DefaultRetryToken.TokenState>
Set of possibles states on which the RetryToken can be, in-progress, succeeded and all the possible failure modes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IN_PROGRESSThe request operation is in-progress.MAX_RETRIES_REACHEDThe request operation failed with max retries reached.NON_RETRYABLE_EXCEPTIONThe request operation failed with non-retryable exception caught.SUCCEEDEDThe request operation concluded successfully.TOKEN_ACQUISITION_FAILEDThe request operation failed with token acquisition failure.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DefaultRetryToken.TokenStatevalueOf(String name)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 Detail
-
IN_PROGRESS
public static final DefaultRetryToken.TokenState IN_PROGRESS
The request operation is in-progress.
-
SUCCEEDED
public static final DefaultRetryToken.TokenState SUCCEEDED
The request operation concluded successfully.
-
TOKEN_ACQUISITION_FAILED
public static final DefaultRetryToken.TokenState TOKEN_ACQUISITION_FAILED
The request operation failed with token acquisition failure.
-
MAX_RETRIES_REACHED
public static final DefaultRetryToken.TokenState MAX_RETRIES_REACHED
The request operation failed with max retries reached.
-
NON_RETRYABLE_EXCEPTION
public static final DefaultRetryToken.TokenState NON_RETRYABLE_EXCEPTION
The request operation failed with non-retryable exception caught.
-
-
Method Detail
-
values
public static DefaultRetryToken.TokenState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DefaultRetryToken.TokenState c : DefaultRetryToken.TokenState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultRetryToken.TokenState valueOf(String name)
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
-
-