Enum Class RequestStatusState
- All Implemented Interfaces:
Serializable,Comparable<RequestStatusState>,java.lang.constant.Constable
Represents the state of an asynchronous request.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestStatusStateResolves a key that was returned fromgetKey()to aRequestStatusState.getKey()Returns the string representation of this state, for using as a key.static RequestStatusStateReturns the enum constant of this class with the specified name.static RequestStatusState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMPLETED
The request was completed. -
FAILED
The request has failed. -
RUNNING
The request is in progress. -
SUBMITTED
The request was submitted, but has not yet started. -
NOT_FOUND
The request was not found.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getKey
Returns the string representation of this state, for using as a key. For backward compatibility, it returns the lowercase form of the state's name. -
fromKey
Resolves a key that was returned fromgetKey()to aRequestStatusState. For backwards compatibility, it resolves the key "notfound" toNOT_FOUND.
-