Method Summary |
|
final public Object | attach(Object anObject) Attaches an object to the key. |
final public Object | attachment() Gets the attached object. |
abstract public void | cancel() Cancels this key. |
abstract public SelectableChannel | channel() Gets the channel of this key. |
abstract public int | interestOps() Gets the interesting operation of this key. |
abstract public SelectionKey | interestOps(int operations) Sets the interesting operation for this key. |
final public boolean | isAcceptable() Tells whether the channel of this key is interested in accept operation
and ready for acceptation. |
final public boolean | isConnectable() Tells whether the channel of this key is interested in connect operation
and ready for connection. |
final public boolean | isReadable() Tells whether the channel of this key is interested in read operation and
ready for reading. |
abstract public boolean | isValid() Tells whether the key is valid. |
final public boolean | isWritable() Tells whether the channel of this key is interested in write operation
and ready for writing. |
abstract public int | readyOps() Gets the ready operation. |
abstract public Selector | selector() Gets the related selector. |