This method performs a non-blocking selection operation. If no channels have become selectable since the previous selection operation then this method immediately returns zero.
Invoking this method clears the effect of any previous invocations of the {@link #wakeup wakeup} method.
@return The number of keys, possibly zero, whose ready-operation setswere updated by the selection operation @throws IOException If an I/O error occurs @throws ClosedSelectorException If this selector is closed
|
|
|
|