API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.nio.channels.spi. AbstractSelectionKey View Source
Author(s)
Mark Reinhold
JSR-51 Expert Group
Since
1.4
Version
1.13, 06/06/07
Serial
Hierarchy
 Object
      SelectionKey
          AbstractSelectionKey
Implements
Subclasses
Description
publicabstract abstract class AbstractSelectionKey
  Base implementation class for selection keys.
See also:   
Constructors
protected AbstractSelectionKey ()
  Initializes a new instance of this class.
Methods
Hide/Show inherited methods
publicfinal Object attach (Object ob) [Inherited From SelectionKey]
  Attaches the given object to this key.
publicfinal Object attachment () [Inherited From SelectionKey]
  Retrieves the current attachment.
publicfinal void cancel () [Specified in SelectionKey]
  Cancels this key.
publicabstract SelectableChannel channel () [Inherited From SelectionKey]
  Returns the channel for which this key was created.
publicabstract int interestOps () [Inherited From SelectionKey]
  Retrieves this key's interest set.
publicabstract SelectionKey interestOps (int ops) [Inherited From SelectionKey]
  Sets this key's interest set to the given value.
pack-private void invalidate ()
publicfinal boolean isAcceptable () [Inherited From SelectionKey]
  Tests whether this key's channel is ready to accept a new socket connection.
publicfinal boolean isConnectable () [Inherited From SelectionKey]
  Tests whether this key's channel has either finished, or failed to finish, its socket-connection operation.
publicfinal boolean isReadable () [Inherited From SelectionKey]
  Tests whether this key's channel is ready for reading.
publicfinal boolean isValid () [Specified in SelectionKey]
publicfinal boolean isWritable () [Inherited From SelectionKey]
  Tests whether this key's channel is ready for writing.
publicabstract int readyOps () [Inherited From SelectionKey]
  Retrieves this key's ready-operation set.
publicabstract Selector selector () [Inherited From SelectionKey]
  Returns the selector for which this key was created.
Fields
Hide/Show inherited fields
publicfinalstatic int OP_ACCEPT = "16" [Inherited From SelectionKey]
  Operation-set bit for socket-accept operations.
publicfinalstatic int OP_CONNECT = "8" [Inherited From SelectionKey]
  Operation-set bit for socket-connect operations.
publicfinalstatic int OP_READ = "1" [Inherited From SelectionKey]
  Operation-set bit for read operations.
publicfinalstatic int OP_WRITE = "4" [Inherited From SelectionKey]
  Operation-set bit for write operations.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar