Enum Class ConnectionError.Kind
- All Implemented Interfaces:
Serializable,Comparable<ConnectionError.Kind>,Constable
- Enclosing class:
ConnectionError
What ended a connection.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe peer's application closed the connection (CONNECTION_CLOSE 0x1d).The peer closed the connection with a transport error (CONNECTION_CLOSE 0x1c).The local application closed the connection.The peer sent a stateless reset.The idle timeout expired.This endpoint detected a protocol error and closed the connection.The server supports none of the client's versions. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionError.KindReturns the enum constant of this class with the specified name.static ConnectionError.Kind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TRANSPORT_ERROR
This endpoint detected a protocol error and closed the connection. -
CONNECTION_CLOSED
The peer closed the connection with a transport error (CONNECTION_CLOSE 0x1c). -
APPLICATION_CLOSED
The peer's application closed the connection (CONNECTION_CLOSE 0x1d). -
LOCALLY_CLOSED
The local application closed the connection. -
TIMED_OUT
The idle timeout expired. -
RESET
The peer sent a stateless reset. -
VERSION_MISMATCH
The server supports none of the client's versions.
-
-
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
-