java.util.EventListenerpublic static interface SelectorManager.AcceptListener
extends java.util.EventListener
A listener for accept events.
This listener is called from either the selector or acceptor thread and implementations must be non blocking and fast.
| Modifier and Type | Method | Description |
|---|---|---|
default void |
onAccepted(java.nio.channels.SelectableChannel channel) |
Called after the accepted channel has been allocated an
EndPoint
and associated Connection, and after the onOpen notifications have
been called on both endPoint and connection. |
default void |
onAcceptFailed(java.nio.channels.SelectableChannel channel,
java.lang.Throwable cause) |
Called if the processing of the accepted channel fails prior to calling
onAccepted(SelectableChannel). |
default void |
onAccepting(java.nio.channels.SelectableChannel channel) |
Called immediately after a new SelectableChannel is accepted, but
before it has been submitted to the
SelectorManager. |
default void onAccepting(java.nio.channels.SelectableChannel channel)
SelectorManager.channel - the accepted channeldefault void onAcceptFailed(java.nio.channels.SelectableChannel channel,
java.lang.Throwable cause)
onAccepted(SelectableChannel).channel - the accepted channelcause - the cause of the failuredefault void onAccepted(java.nio.channels.SelectableChannel channel)
EndPoint
and associated Connection, and after the onOpen notifications have
been called on both endPoint and connection.channel - the accepted channelCopyright © 1995–2018 Webtide. All rights reserved.