API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.nio.channels. Selector View Source
Author(s)
Mark Reinhold
JSR-51 Expert Group
Since
1.4
Version
1.38, 05/11/17
Serial
Hierarchy
 Object
      Selector
Implements
Subclasses
Description
publicabstract abstract class Selector
  A multiplexor of SelectableChannel objects.
Constructors
protected Selector ()
Initializes a new instance of this class.
Methods
Hide/Show inherited methods
publicabstract void close () throws IOException
  Closes this selector.
publicabstract boolean isOpen ()
  Tells whether or not this selector is open.
publicabstract Set<SelectionKey> keys ()
  Returns this selector's key set.
publicstatic Selector open () throws IOException
  Opens a selector.
publicabstract SelectorProvider provider ()
  Returns the provider that created this channel.
publicabstract int select () throws IOException
  Selects a set of keys whose corresponding channels are ready for I/O operations.
publicabstract int select (long timeout) throws IOException
  Selects a set of keys whose corresponding channels are ready for I/O operations.
publicabstract Set<SelectionKey> selectedKeys ()
  Returns this selector's selected-key set.
publicabstract int selectNow () throws IOException
  Selects a set of keys whose corresponding channels are ready for I/O operations.
publicabstract Selector wakeup ()
  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