More information: http://www.cs.berkeley.edu/~mdw/proj/seda/

seda.nbio
Interface Selectable

All Known Implementing Classes:
NonblockingDatagramSocket, NonblockingServerSocket, NonblockingSocket

public interface Selectable

Selectable is an interface which represents an object (such as a socket or file descriptor) which may be used with the SelectItem and SelectSet classes. It defines no methods. The static final fields of this interface specify the event types that may be used with SelectItem and SelectSet.


Field Summary
static short ACCEPT_READY
          Event mask specifying that a new incoming connection is pending.
static short CONNECT_READY
          Event mask specifying that a pending outgoing connection has been established.
static short READ_READY
          Event mask specifying that data can be read without blocking.
static short SELECT_ERROR
          Specifies that an error has occured on this SelectItem.
static short WRITE_READY
          Event mask specifying that data can be written without blocking.
 

Field Detail

READ_READY

public static final short READ_READY
Event mask specifying that data can be read without blocking.

WRITE_READY

public static final short WRITE_READY
Event mask specifying that data can be written without blocking.

ACCEPT_READY

public static final short ACCEPT_READY
Event mask specifying that a new incoming connection is pending.

CONNECT_READY

public static final short CONNECT_READY
Event mask specifying that a pending outgoing connection has been established.

SELECT_ERROR

public static final short SELECT_ERROR
Specifies that an error has occured on this SelectItem. Invoking the requested read, write, connect, etc. operation will throw the appropriate exception. Only valid for revents.

More information: http://www.cs.berkeley.edu/~mdw/proj/seda/