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 Details

    • 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 Details

    • values

      public static DefaultRetryToken.TokenState[] 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

      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 name
      NullPointerException - if the argument is null