Package io.servicetalk.loadbalancer
Enum Class ErrorClass
- All Implemented Interfaces:
Serializable
,Comparable<ErrorClass>
,Constable
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 ConstantDescriptionFailure due to cancellation.Failures returned from the remote peer.Failures related to locally enforced timeouts waiting for responses from the peer.Failures related to connection establishment.Failures caused locally, these would be things that failed due to an exception locally.Failures related to locally enforced timeouts that prevent session establishment with the peer. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isLocal()
static ErrorClass
Returns the enum constant of this class with the specified name.static ErrorClass[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOCAL_ORIGIN_TIMEOUT
Failures related to locally enforced timeouts that prevent session establishment with the peer. -
LOCAL_ORIGIN_CONNECT_FAILED
Failures related to connection establishment. -
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
-
isLocal
public boolean isLocal()
-