public static enum CloseHandler.CloseEvent extends java.lang.Enum<CloseHandler.CloseEvent>
Channel that indicates the end of the
Channel and no further requests should be attempted.| Enum Constant and Description |
|---|
CHANNEL_CLOSED_INBOUND
Inbound
SocketChannel shutdown observed. |
CHANNEL_CLOSED_OUTBOUND
Outbound
SocketChannel shutdown observed. |
PROTOCOL_CLOSING_INBOUND
Inbound protocol close command observed eg.
|
PROTOCOL_CLOSING_OUTBOUND
Outbound protocol close command observed eg.
|
USER_CLOSING
User initiated close command, depends on the implementation but usually resembles outbound protocol close.
|
| Modifier and Type | Method and Description |
|---|---|
static CloseHandler.CloseEvent |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CloseHandler.CloseEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CloseHandler.CloseEvent PROTOCOL_CLOSING_OUTBOUND
Connection: close.public static final CloseHandler.CloseEvent PROTOCOL_CLOSING_INBOUND
Connection: close.public static final CloseHandler.CloseEvent USER_CLOSING
public static final CloseHandler.CloseEvent CHANNEL_CLOSED_OUTBOUND
SocketChannel shutdown observed.public static final CloseHandler.CloseEvent CHANNEL_CLOSED_INBOUND
SocketChannel shutdown observed.public static CloseHandler.CloseEvent[] values()
for (CloseHandler.CloseEvent c : CloseHandler.CloseEvent.values()) System.out.println(c);
public static CloseHandler.CloseEvent valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null