Method Summary |
|
abstract public void | close() Closes this selector. |
abstract public boolean | isOpen() Tells whether this selector is open. |
abstract public Set<SelectionKey> | keys() Gets the set of registered keys. |
public static Selector | open() The factory method for selector. |
abstract public SelectorProvider | provider() Gets the provider of this selector. |
abstract public int | select() Detects if any of the registered channels are ready for I/O operations
according to their interesting operation. |
abstract public int | select(long timeout) Detects if any of the registered channels are ready for I/O operations
according to their interesting operation.This operation will not return
until some of the channels are ready or wakeup is invoked or timeout
expired. |
abstract public int | selectNow() Detects if any of the registered channels are ready for I/O operations
according to their interesting operation.This operation will not return
immediately. |
abstract public Set<SelectionKey> | selectedKeys() Gets the keys whose channels are ready for operation. |
abstract public Selector | wakeup() Forces the blocked select operation to return immediately. |