Package org.glassfish.grizzly
Enum IOEvent
- java.lang.Object
-
- java.lang.Enum<IOEvent>
-
- org.glassfish.grizzly.IOEvent
-
- All Implemented Interfaces:
Serializable,Comparable<IOEvent>
public enum IOEvent extends Enum<IOEvent>
Enumeration represents the I/O events, occurred on aConnection.- Author:
- Alexey Stashok
- See Also:
Connection
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPTEDEvent occurs on a clientConnection, just after it was accepted by the server.CLIENT_CONNECTEDEvent occurs on aConnection, once it was connected to server.CLOSEDEvent occurs on aConnection, once it gets closed.CONNECTEDEvent occurs on aConnection, once it was connected to server.NONEno eventREADEvent occurs on aConnection, once it gets available for read.SERVER_ACCEPTEvent occurs on a serverConnection, when it becomes ready to accept new clientConnection.WRITEEvent occurs on aConnection, once it gets available for write.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSelectionKeyInterest()static IOEventvalueOf(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.
-
-
-
Enum Constant Detail
-
NONE
public static final IOEvent NONE
no event
-
READ
public static final IOEvent READ
Event occurs on aConnection, once it gets available for read.
-
WRITE
public static final IOEvent WRITE
Event occurs on aConnection, once it gets available for write.
-
SERVER_ACCEPT
public static final IOEvent 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
public static final IOEvent 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
public static final IOEvent CLIENT_CONNECTED
Event occurs on aConnection, once it was connected to server. (this is service IOEvent, which is not getting propagated to aProcessor
-
CONNECTED
public static final IOEvent CONNECTED
Event occurs on aConnection, once it was connected to server.
-
CLOSED
public static final IOEvent CLOSED
Event occurs on aConnection, once it gets closed.
-
-
Method Detail
-
values
public static IOEvent[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IOEvent c : IOEvent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IOEvent valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getSelectionKeyInterest
public int getSelectionKeyInterest()
-
-