- start
Starts the primary selector.
- stop
Stops the primary selector.
- waitForState
Blocks until the primary selector enters the specified state.
- onStateChange
Registers a listener to be executed whenever the selector's state updates. The
listener will be exec