A Runnable that will only execute in this selector loop and provides
access to the SelectorLoop
s scratch buffer.
Signal to the SelectorLoop that it should close
Schedule to provided Runnable
for execution later
Schedule to provided Runnable
for execution later
The task will be added to the end of the queue of tasks scheduled for execution regardless of where this method is called.
executeTask
for a method that will execute the task now if
the calling thread is this
SelectorLoop
, or schedule it for
later otherwise.
Schedule the provided Runnable
for execution, potentially running it now
Schedule the provided Runnable
for execution, potentially running it now
The provided task may be executed *now* if the calling thread is this
SelectorLoop
, otherwise it is added to the task queue to be executed by
the SelectorLoop
thread later.
Initialize a new Selectable
channel
Initialize a new Selectable
channel
The SelectableChannel
is added to the selector loop the
Selectable will be notified when it has events ready.
the underlying SelectableChannel
_must_ be
configured in non-blocking mode.
A special thread that listens for events on the provided selector.
when the
SelectorLoop
is closed all registered Selectables are closed with it.