Package org.eclipse.jetty.io
Interface SelectorManager.AcceptListener
- 
- All Superinterfaces:
- java.util.EventListener
 - All Known Implementing Classes:
- AcceptRateLimit,- ConnectionLimit
 - Enclosing class:
- SelectorManager
 
 public static interface SelectorManager.AcceptListener extends java.util.EventListenerA listener for accept events. This listener is called from either the selector or acceptor thread and implementations must be non blocking and fast. 
- 
- 
Method SummaryAll Methods Instance Methods Default Methods Modifier and Type Method Description default voidonAccepted(java.nio.channels.SelectableChannel channel)Called after the accepted channel has been allocated anEndPointand associatedConnection, and after the onOpen notifications have been called on both endPoint and connection.default voidonAcceptFailed(java.nio.channels.SelectableChannel channel, java.lang.Throwable cause)Called if the processing of the accepted channel fails prior to callingonAccepted(SelectableChannel).default voidonAccepting(java.nio.channels.SelectableChannel channel)Called immediately after a new SelectableChannel is accepted, but before it has been submitted to theSelectorManager.
 
- 
- 
- 
Method Detail- 
onAcceptingdefault void onAccepting(java.nio.channels.SelectableChannel channel) Called immediately after a new SelectableChannel is accepted, but before it has been submitted to theSelectorManager.- Parameters:
- channel- the accepted channel
 
 - 
onAcceptFaileddefault void onAcceptFailed(java.nio.channels.SelectableChannel channel, java.lang.Throwable cause)Called if the processing of the accepted channel fails prior to callingonAccepted(SelectableChannel).- Parameters:
- channel- the accepted channel
- cause- the cause of the failure
 
 - 
onAccepteddefault void onAccepted(java.nio.channels.SelectableChannel channel) Called after the accepted channel has been allocated anEndPointand associatedConnection, and after the onOpen notifications have been called on both endPoint and connection.- Parameters:
- channel- the accepted channel
 
 
- 
 
-