SelectedKeysHandler.handleSelectedKey

Handles key by calling its handle() method and unregisters it if the handle() call either returns false or throws an exception. In the latter case the exception thrown is reported to the client by calling its error() method.

class SelectedKeysHandler
protected final
void
handleSelectedKey
(,
scope bool delegate
(
Exception
)
unhandled_exception_hook
)

Parameters

key epoll_event_t

an epoll key which contains a client to be handled and the reported event

unhandled_exception_hook bool delegate
(
Exception
)

if not null, will be called each time event call results in unhandled exception. May both rethrow and consume exception instance after processing it.

Meta