public enum SocketEvent extends Enum<SocketEvent>
Enum Constant and Description |
---|
DISCONNECT
The client has disconnected.
|
ERROR
An error has occurred on a non-container thread and processing needs to
return to the container for any necessary clean-up.
|
OPEN_READ
Data is available to be read.
|
OPEN_WRITE
The socket is ready to be written to.
|
STOP
The associated Connector/Endpoint is stopping and the connection/socket
needs to be closed cleanly.
|
TIMEOUT
A timeout has occurred and the connection needs to be closed cleanly.
|
Modifier and Type | Method and Description |
---|---|
static SocketEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SocketEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SocketEvent OPEN_READ
public static final SocketEvent OPEN_WRITE
public static final SocketEvent STOP
public static final SocketEvent TIMEOUT
public static final SocketEvent DISCONNECT
public static final SocketEvent ERROR
public static SocketEvent[] values()
for (SocketEvent c : SocketEvent.values()) System.out.println(c);
public static SocketEvent 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 © 2000-2016 Apache Software Foundation. All Rights Reserved.