API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.nio.channels.spi. AbstractSelector View Source
Author(s)
Mark Reinhold
JSR-51 Expert Group
Since
1.4
Version
1.21, 05/11/17
Serial
Hierarchy
 Object
      Selector
          AbstractSelector
Implements
Subclasses
Description
publicabstract abstract class AbstractSelector
  Base implementation class for selectors.
See also:   
Constructors
protected AbstractSelector (SelectorProvider provider)
  Initializes a new instance of this class.
Methods
Hide/Show inherited methods
protectedfinal void begin ()
  Marks the beginning of an I/O operation that might block indefinitely.
pack-private void cancel (SelectionKey k)
protectedfinal Set<SelectionKey> cancelledKeys ()
  Retrieves this selector's cancelled-key set.
publicfinal void close () throws IOException [Specified in Selector]
  Closes this selector.
protectedfinal void deregister (AbstractSelectionKey key)
  Removes the given key from its channel's key set.
protectedfinal void end ()
  Marks the end of an I/O operation that might block indefinitely.
protectedabstract void implCloseSelector () throws IOException
  Closes this selector.
publicfinal boolean isOpen () [Specified in Selector]
publicabstract Set<SelectionKey> keys () [Inherited From Selector]
  Returns this selector's key set.
publicstatic Selector open () throws IOException [Inherited From Selector]
  Opens a selector.
publicfinal SelectorProvider provider () [Specified in Selector]
  Returns the provider that created this channel.
protectedabstract SelectionKey register (AbstractSelectableChannel ch, int ops, Object att)
  Registers the given channel with this selector.
publicabstract int select () throws IOException [Inherited From Selector]
  Selects a set of keys whose corresponding channels are ready for I/O operations.
publicabstract int select (long timeout) throws IOException [Inherited From Selector]
  Selects a set of keys whose corresponding channels are ready for I/O operations.
publicabstract Set<SelectionKey> selectedKeys () [Inherited From Selector]
  Returns this selector's selected-key set.
publicabstract int selectNow () throws IOException [Inherited From Selector]
  Selects a set of keys whose corresponding channels are ready for I/O operations.
publicabstract Selector wakeup () [Inherited From Selector]
  Causes the first selection operation that has not yet returned to return immediately.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar