Enum Class CloseHandler.CloseEvent
java.lang.Object
java.lang.Enum<CloseHandler.CloseEvent>
io.servicetalk.transport.netty.internal.CloseHandler.CloseEvent
- All Implemented Interfaces:
Serializable
,Comparable<CloseHandler.CloseEvent>
,Constable
- Enclosing class:
- CloseHandler
These events indicate an event was observed from the protocol or
Channel
that indicates the end of the
Channel
and no further requests should be attempted.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInboundSocketChannel
shutdown observed.OutboundSocketChannel
shutdown observed.User initiated close command, depends on the implementation but usually resembles outbound protocol close.Inbound protocol close command observed eg.Outbound protocol close command observed eg. -
Method Summary
Modifier and TypeMethodDescriptionstatic CloseHandler.CloseEvent
Returns the enum constant of this class with the specified name.static CloseHandler.CloseEvent[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PROTOCOL_CLOSING_OUTBOUND
Outbound protocol close command observed eg. HTTP header:Connection: close
. -
PROTOCOL_CLOSING_INBOUND
Inbound protocol close command observed eg. HTTP header:Connection: close
. -
GRACEFUL_USER_CLOSING
User initiated close command, depends on the implementation but usually resembles outbound protocol close. -
CHANNEL_CLOSED_OUTBOUND
OutboundSocketChannel
shutdown observed. -
CHANNEL_CLOSED_INBOUND
InboundSocketChannel
shutdown observed.
-
-
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
-