java.io.Serializable
, java.lang.Comparable<SocketEvent>
public enum SocketEvent extends java.lang.Enum<SocketEvent>
Enum Constant | 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 | Description |
---|---|---|
static SocketEvent |
valueOf(java.lang.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(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 nullCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.