Enum Class HttpTransportObserver.ConnectionOutcome
java.lang.Object
java.lang.Enum<HttpTransportObserver.ConnectionOutcome>
io.helidon.http.HttpTransportObserver.ConnectionOutcome
- All Implemented Interfaces:
Serializable, Comparable<HttpTransportObserver.ConnectionOutcome>, Constable
- Enclosing interface:
HttpTransportObserver
public static enum HttpTransportObserver.ConnectionOutcome
extends Enum<HttpTransportObserver.ConnectionOutcome>
Connection termination outcome.
Publishers must classify a timeout as TIMEOUT and any other failure as ERROR. Otherwise,
an endpoint-directed close is LOCAL_CLOSE or REMOTE_CLOSE, including when the close is graceful.
NORMAL is reserved for graceful completion without an applicable endpoint-directed close.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConnection termination was caused by an error other than a timeout.Local endpoint initiated the connection close.Connection completed gracefully without an applicable endpoint-directed close.Remote endpoint initiated the connection close.Connection termination was caused by a timeout. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
Connection completed gracefully without an applicable endpoint-directed close. -
LOCAL_CLOSE
Local endpoint initiated the connection close. -
REMOTE_CLOSE
Remote endpoint initiated the connection close. -
TIMEOUT
Connection termination was caused by a timeout. -
ERROR
Connection termination was caused by an error other than a timeout.
-
-
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
-