- All Implemented Interfaces:
Serializable
,Comparable<IOEvent>
,Constable
Enumeration represents the I/O events, occurred on a
Connection
.- Author:
- Alexey Stashok
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEvent occurs on a clientConnection
, just after it was accepted by the server.Event occurs on aConnection
, once it was connected to server.Event occurs on aConnection
, once it gets closed.Event occurs on aConnection
, once it was connected to server.no eventEvent occurs on aConnection
, once it gets available for read.Event occurs on a serverConnection
, when it becomes ready to accept new clientConnection
.Event occurs on aConnection
, once it gets available for write. -
Method Summary
-
Enum Constant Details
-
NONE
no event -
READ
Event occurs on aConnection
, once it gets available for read. -
WRITE
Event occurs on aConnection
, once it gets available for write. -
SERVER_ACCEPT
Event occurs on a serverConnection
, when it becomes ready to accept new clientConnection
. Note, this event occurs on server code for serverConnection
. -
ACCEPTED
Event occurs on a clientConnection
, just after it was accepted by the server. Note, this event occurs on server code for clientConnection
. -
CLIENT_CONNECTED
Event occurs on aConnection
, once it was connected to server. (this is service IOEvent, which is not getting propagated to aProcessor
-
CONNECTED
Event occurs on aConnection
, once it was connected to server. -
CLOSED
Event occurs on aConnection
, once it gets closed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getSelectionKeyInterest
public int getSelectionKeyInterest()
-