public enum TrackedRequestFinalState extends java.lang.Enum<TrackedRequestFinalState>
Enum Constant and Description |
---|
FAILURE |
NOT_FOUND |
SUCCESS |
TIMED_OUT |
Modifier and Type | Method and Description |
---|---|
static TrackedRequestFinalState |
fromRouterErrorCodeToFinalState(com.github.ambry.router.RouterErrorCode code)
Return the corresponding
TrackedRequestFinalState for the given RouterErrorCode . |
static TrackedRequestFinalState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TrackedRequestFinalState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrackedRequestFinalState SUCCESS
public static final TrackedRequestFinalState FAILURE
public static final TrackedRequestFinalState TIMED_OUT
public static final TrackedRequestFinalState NOT_FOUND
public static TrackedRequestFinalState[] values()
for (TrackedRequestFinalState c : TrackedRequestFinalState.values()) System.out.println(c);
public static TrackedRequestFinalState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static TrackedRequestFinalState fromRouterErrorCodeToFinalState(com.github.ambry.router.RouterErrorCode code)
TrackedRequestFinalState
for the given RouterErrorCode
.code
- The RouterErrorCode
to handle.TrackedRequestFinalState
.