Interface SelectorManager.AcceptListener

    • Method Summary

      All Methods Instance Methods Default Methods 
      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.
    • Method Detail

      • onAccepting

        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.
        Parameters:
        channel - the accepted channel
      • onAcceptFailed

        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).
        Parameters:
        channel - the accepted channel
        cause - the cause of the failure
      • onAccepted

        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.
        Parameters:
        channel - the accepted channel