Top Description Fields Constructors Methods
org.glassfish.grizzly

public final Enum IOEvent

extends Enum<IOEvent>
Class Inheritance
Imports
java.nio.channels.SelectionKey

Enumeration represents the I/O events, occurred on a Connection.
Author
Alexey Stashok
See Also
Connection

Field Summary

Modifier and TypeField and Description
public static final IOEvent
ACCEPTED

Event occurs on a client Connection, just after it was accepted by the server.

public static final IOEvent
CLIENT_CONNECTED

Event occurs on a Connection, once it was connected to server.

public static final IOEvent
CLOSED

Event occurs on a Connection, once it gets closed.

public static final IOEvent
CONNECTED

Event occurs on a Connection, once it was connected to server.

public static final IOEvent
NONE

no event

public static final IOEvent
READ

Event occurs on a Connection, once it gets available for read.

private final int
public static final IOEvent
SERVER_ACCEPT

Event occurs on a server Connection, when it becomes ready to accept new client Connection.

public static final IOEvent
WRITE

Event occurs on a Connection, once it gets available for write.

Constructor Summary

AccessConstructor and Description
private
IOEvent(int selectionKeyInterest)

Method Summary

Modifier and TypeMethod and Description
public int
public static IOEvent
public static IOEvent[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ACCEPTEDback to summary
public static final IOEvent ACCEPTED

Event occurs on a client Connection, just after it was accepted by the server. Note, this event occurs on server code for client Connection.

CLIENT_CONNECTEDback to summary
public static final IOEvent CLIENT_CONNECTED

Event occurs on a Connection, once it was connected to server. (this is service IOEvent, which is not getting propagated to a Processor

CLOSEDback to summary
public static final IOEvent CLOSED

Event occurs on a Connection, once it gets closed.

CONNECTEDback to summary
public static final IOEvent CONNECTED

Event occurs on a Connection, once it was connected to server.

NONEback to summary
public static final IOEvent NONE

no event

READback to summary
public static final IOEvent READ

Event occurs on a Connection, once it gets available for read.

selectionKeyInterestback to summary
private final int selectionKeyInterest
SERVER_ACCEPTback to summary
public static final IOEvent SERVER_ACCEPT

Event occurs on a server Connection, when it becomes ready to accept new client Connection. Note, this event occurs on server code for server Connection.

WRITEback to summary
public static final IOEvent WRITE

Event occurs on a Connection, once it gets available for write.

Constructor Detail

IOEventback to summary
private IOEvent(int selectionKeyInterest)

Method Detail

getSelectionKeyInterestback to summary
public int getSelectionKeyInterest()
valueOfback to summary
public static IOEvent valueOf(String name)
valuesback to summary
public static IOEvent[] values()