Interface IoHandler

All Known Implementing Classes:
EpollIoHandler, IoUringIoHandler, KQueueIoHandler, LocalIoHandler, NioIoHandler

public interface IoHandler
Handles IO dispatching for an ThreadAwareExecutor. All operations except wakeup() and isCompatible(Class) MUST be executed on the ThreadAwareExecutor thread (which means ThreadAwareExecutor.isExecutorThread(Thread) must return true) and should never be called from the user-directly.

Once a IoHandle is registered via the register(IoHandle) method it's possible to submit IoOps related to the IoHandle via IoRegistration.submit(IoOps). These submitted IoOps are the "source" of IoEvents that are dispatched to the registered IoHandle via the IoHandle.handle(IoRegistration, IoEvent) method. These events must be consumed (and handled) as otherwise they might be reported again until handled.

  • Method Details