Java java.nio.channels Selector fields, constructors, methods, implement or subclass

Example usage for Java java.nio.channels Selector fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.nio.channels Selector.

The text is from its open source code.

Method

voidclose()
Closes this selector.
booleanisOpen()
Tells whether or not this selector is open.
Setkeys()
Returns this selector's key set.
Selectoropen()
Opens a selector.
intselect()
Selects a set of keys whose corresponding channels are ready for I/O operations.
intselect(long timeout)
Selects a set of keys whose corresponding channels are ready for I/O operations.
intselect(Consumer action)
Selects and performs an action on the keys whose corresponding channels are ready for I/O operations.
SetselectedKeys()
Returns this selector's selected-key set.
intselectNow()
Selects a set of keys whose corresponding channels are ready for I/O operations.
Selectorwakeup()
Causes the first selection operation that has not yet returned to return immediately.