Interface SelectorManager.AcceptListener

  • All Superinterfaces:
    EventListener
    All Known Implementing Classes:
    AcceptRateLimit, ConnectionLimit
    Enclosing class:
    SelectorManager

    @Deprecated(since="2021-05-27")
    public static interface SelectorManager.AcceptListener
    extends EventListener
    Deprecated.
    The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.

    A listener for accept events.

    This listener is called from either the selector or acceptor thread and implementations must be non blocking and fast.

    • Method Detail

      • onAccepting

        default void onAccepting​(SelectableChannel channel)
        Deprecated.
        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​(SelectableChannel channel,
                                    Throwable cause)
        Deprecated.
        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​(SelectableChannel channel)
        Deprecated.
        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