public enum NGClientDisconnectReason extends java.lang.Enum<NGClientDisconnectReason>
| Enum Constant and Description |
|---|
HEARTBEAT
Thread reading from socket stream is blocked waiting for data for configured time.
|
INTERNAL_ERROR
Some unexpected error happened
|
SESSION_SHUTDOWN
Server is no longer reading from client because server itself signals shutdown
|
SOCKET_ERROR
Some error encountered reading data from the socket
|
SOCKET_TIMEOUT
Communication transport socket did not receive anything from the client within configured
time.
|
| Modifier and Type | Method and Description |
|---|---|
static NGClientDisconnectReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NGClientDisconnectReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NGClientDisconnectReason SOCKET_TIMEOUT
public static final NGClientDisconnectReason HEARTBEAT
public static final NGClientDisconnectReason SOCKET_ERROR
public static final NGClientDisconnectReason SESSION_SHUTDOWN
public static final NGClientDisconnectReason INTERNAL_ERROR
public static NGClientDisconnectReason[] values()
for (NGClientDisconnectReason c : NGClientDisconnectReason.values()) System.out.println(c);
public static NGClientDisconnectReason 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