API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.nio.channels. SelectableChannel View Source
Author(s)
Mark Reinhold
JSR-51 Expert Group
Since
1.4
Version
1.35, 05/11/17
Serial
Hierarchy
 Object
      AbstractInterruptibleChannel
          SelectableChannel
Implements
 Channel
Subclasses
Description
publicabstract abstract class SelectableChannel
  A channel that can be multiplexed via a Selector.
See also:    SelectionKey Selector
Constructors
protected SelectableChannel ()
Initializes a new instance of this class.
Methods
Hide/Show inherited methods
protectedfinal void begin () [Inherited From AbstractInterruptibleChannel]
  Marks the beginning of an I/O operation that might block indefinitely.
publicabstract Object blockingLock ()
  Retrieves the object upon which the configureBlocking and register methods synchronize.
publicfinal void close () throws IOException [Inherited From AbstractInterruptibleChannel]
  Closes this channel.
publicabstract SelectableChannel configureBlocking (boolean block) throws IOException
  Adjusts this channel's blocking mode.
protectedfinal void end (boolean completed) throws AsynchronousCloseException [Inherited From AbstractInterruptibleChannel]
  Marks the end of an I/O operation that might block indefinitely.
protectedabstract void implCloseChannel () throws IOException [Inherited From AbstractInterruptibleChannel]
  Closes this channel.
publicabstract boolean isBlocking ()
  Tells whether or not every I/O operation on this channel will block until it completes.
publicfinal boolean isOpen () [Inherited From AbstractInterruptibleChannel]
publicabstract boolean isRegistered ()
  Tells whether or not this channel is currently registered with any selectors.
publicabstract SelectionKey keyFor (Selector sel)
  Retrieves the key representing the channel's registration with the given selector.
publicabstract SelectorProvider provider ()
  Returns the provider that created this channel.
publicfinal SelectionKey register (Selector sel, int ops) throws ClosedChannelException
  Registers this channel with the given selector, returning a selection key.
publicabstract SelectionKey register (Selector sel, int ops, Object att) throws ClosedChannelException
  Registers this channel with the given selector, returning a selection key.
publicabstract int validOps ()
  Returns an operation set identifying this channel's supported operations.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar