public enum ConnectionCloseReason extends java.lang.Enum<ConnectionCloseReason>
| Enum Constant and Description |
|---|
CLIENT
Client requested it
|
EOF
End-of-file from server
|
ERROR
Misc I/O error
|
KEEPALIVE
Keepalive timer triggered
|
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static ConnectionCloseReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionCloseReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionCloseReason ERROR
public static final ConnectionCloseReason EOF
public static final ConnectionCloseReason KEEPALIVE
public static final ConnectionCloseReason CLIENT
public static final ConnectionCloseReason UNKNOWN
public static ConnectionCloseReason[] values()
for (ConnectionCloseReason c : ConnectionCloseReason.values()) System.out.println(c);
public static ConnectionCloseReason 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