public enum TransportDisconnectReason extends java.lang.Enum<TransportDisconnectReason>
| Enum Constant and Description |
|---|
ABORTED_BY_REMOTE_PEER
The remote aborted the connection rather than closing it cleanly.
|
ALREADY_CONNECTED
The server refused the connection, as this address is already connected.
|
BAD_PACKET
The remote sent something invalid.
|
CLOSED_BY_REMOTE_PEER
The remote ended the connection.
|
CONNECTION_LOST
Connectivity to the remote was lost, such as a NetherNet peer no longer answering ICE checks.
|
CONNECTION_REQUEST_FAILED
The connection request could not be completed.
|
DISCONNECTED
This side ended the connection.
|
INCOMPATIBLE_PROTOCOL_VERSION
The server speaks another protocol version.
|
IP_RECENTLY_CONNECTED
The server refused the connection, as this address connected too recently.
|
NO_FREE_INCOMING_CONNECTIONS
The server refused the connection, as it is full.
|
ORDERING_QUEUE_TOO_LONG
The remote sent more out of order packets than could be held.
|
QUEUE_TOO_LONG
More was waiting to be sent than the transport holds, as when the remote stops reading.
|
SHUTTING_DOWN
This side is shutting down.
|
SPLIT_QUEUE_TOO_LONG
The remote sent more split packets than could be reassembled.
|
TIMED_OUT
The remote stopped answering.
|
TRANSPORT_FAILED
The transport itself failed, such as a broken DTLS session or a send that could not go out.
|
| Modifier and Type | Method and Description |
|---|---|
static TransportDisconnectReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransportDisconnectReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransportDisconnectReason CLOSED_BY_REMOTE_PEER
public static final TransportDisconnectReason SHUTTING_DOWN
public static final TransportDisconnectReason DISCONNECTED
public static final TransportDisconnectReason TIMED_OUT
public static final TransportDisconnectReason CONNECTION_REQUEST_FAILED
public static final TransportDisconnectReason ALREADY_CONNECTED
public static final TransportDisconnectReason NO_FREE_INCOMING_CONNECTIONS
public static final TransportDisconnectReason INCOMPATIBLE_PROTOCOL_VERSION
public static final TransportDisconnectReason IP_RECENTLY_CONNECTED
public static final TransportDisconnectReason BAD_PACKET
public static final TransportDisconnectReason QUEUE_TOO_LONG
public static final TransportDisconnectReason SPLIT_QUEUE_TOO_LONG
public static final TransportDisconnectReason ORDERING_QUEUE_TOO_LONG
public static final TransportDisconnectReason ABORTED_BY_REMOTE_PEER
public static final TransportDisconnectReason CONNECTION_LOST
public static final TransportDisconnectReason TRANSPORT_FAILED
public static TransportDisconnectReason[] values()
for (TransportDisconnectReason c : TransportDisconnectReason.values()) System.out.println(c);
public static TransportDisconnectReason 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