public enum IOEvent extends Enum<IOEvent>
Connection.Connection| Enum Constant and Description |
|---|
ACCEPTED
Event occurs on a client
Connection, just after it was accepted
by the server. |
CLIENT_CONNECTED
Event occurs on a
Connection, once it was connected to server. |
CLOSED
Event occurs on a
Connection, once it gets closed. |
CONNECTED
Event occurs on a
Connection, once it was connected to server. |
NONE
no event
|
READ
Event occurs on a
Connection, once it gets available for read. |
SERVER_ACCEPT
Event occurs on a server
Connection, when it becomes ready
to accept new client Connection. |
WRITE
Event occurs on a
Connection, once it gets available for write. |
| Modifier and Type | Method and Description |
|---|---|
int |
getSelectionKeyInterest() |
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.
|
public static final IOEvent NONE
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 SERVER_ACCEPT
Connection, when it becomes ready
to accept new client Connection.
Note, this event occurs on server code for server Connection.public static final IOEvent ACCEPTED
Connection, just after it was accepted
by the server.
Note, this event occurs on server code for client Connection.public static final IOEvent CLIENT_CONNECTED
Connection, once it was connected to server.
(this is service IOEvent, which is not getting propagated to a Processorpublic static final IOEvent CONNECTED
Connection, once it was connected to server.public static final IOEvent CLOSED
Connection, once it gets closed.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 nameNullPointerException - if the argument is nullpublic int getSelectionKeyInterest()
Copyright © 2015 Oracle Corporation. All Rights Reserved.