Example usage for Java java.nio.channels Selector fields, constructors, methods, implement or subclass
The text is from its open source code.
void | close() Closes this selector. |
boolean | isOpen() Tells whether or not this selector is open. |
Set | keys() Returns this selector's key set. |
Selector | open() Opens a selector. |
int | select() Selects a set of keys whose corresponding channels are ready for I/O operations. |
int | select(long timeout) Selects a set of keys whose corresponding channels are ready for I/O operations. |
int | select(Consumer Selects and performs an action on the keys whose corresponding channels are ready for I/O operations. |
Set | selectedKeys() Returns this selector's selected-key set. |
int | selectNow() Selects a set of keys whose corresponding channels are ready for I/O operations. |
Selector | wakeup() Causes the first selection operation that has not yet returned to return immediately. |