Package io.servicetalk.client.api
Enum Class RequestTracker.ErrorClass
- All Implemented Interfaces:
Serializable
,Comparable<RequestTracker.ErrorClass>
,Constable
- Enclosing interface:
- RequestTracker
Enumeration of the main failure classes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFailure due to cancellation.Failures returned from the remote peer.Failures related to locally enforced timeouts waiting for responses from the peer.Failures caused locally, these would be things that failed due to an exception locally. -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestTracker.ErrorClass
Returns the enum constant of this class with the specified name.static RequestTracker.ErrorClass[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOCAL_ORIGIN_REQUEST_FAILED
Failures caused locally, these would be things that failed due to an exception locally. -
EXT_ORIGIN_TIMEOUT
Failures related to locally enforced timeouts waiting for responses from the peer. -
EXT_ORIGIN_REQUEST_FAILED
Failures returned from the remote peer. This will be things like 5xx responses. -
CANCELLED
Failure due to cancellation.
-
-
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
-