public enum ConnectionState extends Enum<ConnectionState>
| Enum Constant and Description |
|---|
CLOSED
All application data has passed the line and has been confirmed.
|
CLOSING
We've either received or sent a FIN packet indicating that the connection will be terminated.
|
CONNECTED
The connection has been established and application data is able to be sent over the line.
|
PENDING
The socket has been created but there has no action been taken to initiate or receive a connection on it.
|
RESET
Connection has been abruptly closed by a
ResetPayload |
SYN_RECEIVED
We received the initial SYN packet from the remote and have sent the confirmation that we want to establish a connection.
|
SYN_SENT
We sent the initial SYN packet and are awaiting confirmation to establish the connection.
|
| Modifier and Type | Method and Description |
|---|---|
static ConnectionState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionState PENDING
public static final ConnectionState SYN_SENT
public static final ConnectionState SYN_RECEIVED
public static final ConnectionState CONNECTED
public static final ConnectionState CLOSING
public static final ConnectionState CLOSED
public static final ConnectionState RESET
ResetPayloadpublic static ConnectionState[] values()
for (ConnectionState c : ConnectionState.values()) System.out.println(c);
public static ConnectionState 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 © 2017. All rights reserved.