public enum DisconnectReason extends Enum<DisconnectReason>
| Enum Constant and Description |
|---|
ALREADY_CONNECTED |
CLOSED_BY_REMOTE_PEER |
CONNECTION_REQUEST_FAILED |
DISCONNECTED |
INCOMPATIBLE_PROTOCOL_VERSION |
IP_RECENTLY_CONNECTED |
NO_FREE_INCOMING_CONNECTIONS |
SHUTTING_DOWN |
TIMED_OUT |
| Modifier and Type | Method and Description |
|---|---|
static DisconnectReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DisconnectReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DisconnectReason CLOSED_BY_REMOTE_PEER
public static final DisconnectReason SHUTTING_DOWN
public static final DisconnectReason DISCONNECTED
public static final DisconnectReason TIMED_OUT
public static final DisconnectReason CONNECTION_REQUEST_FAILED
public static final DisconnectReason ALREADY_CONNECTED
public static final DisconnectReason NO_FREE_INCOMING_CONNECTIONS
public static final DisconnectReason INCOMPATIBLE_PROTOCOL_VERSION
public static final DisconnectReason IP_RECENTLY_CONNECTED
public static DisconnectReason[] values()
for (DisconnectReason c : DisconnectReason.values()) System.out.println(c);
public static DisconnectReason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2018–2019. All rights reserved.