|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<IOEvent>
org.glassfish.grizzly.IOEvent
public enum IOEvent
Enumeration represents the I/O events, occured on a Connection.
Connection| Enum Constant Summary | |
|---|---|
ACCEPTED
Event occures on a client Connection, just after it was accepted
by the server. |
|
CLOSED
Event occures on a Connection, once it gets closed. |
|
CONNECTED
Event occures on a Connection, once it was connected to server. |
|
NONE
no event |
|
READ
Event occures on a Connection, once it gets available for read. |
|
SERVER_ACCEPT
Event occures on a server Connection, when it becomes ready
to accept new client Connection. |
|
WRITE
Event occures on a Connection, once it gets available for write. |
|
| Method Summary | |
|---|---|
static IOEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static IOEvent[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final IOEvent NONE
public static final IOEvent SERVER_ACCEPT
Connection, when it becomes ready
to accept new client Connection.
Note, this event occures on server code for server Connection.
public static final IOEvent ACCEPTED
Connection, just after it was accepted
by the server.
Note, this event occures on server code for client Connection.
public static final IOEvent CONNECTED
Connection, once it was connected to server.
public static final IOEvent READ
Connection, once it gets available for read.
public static final IOEvent WRITE
Connection, once it gets available for write.
public static final IOEvent CLOSED
Connection, once it gets closed.
| Method Detail |
|---|
public static IOEvent[] values()
for (IOEvent c : IOEvent.values()) System.out.println(c);
public static IOEvent valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||