Interface OpenListener

  • All Superinterfaces:
    org.xnio.ChannelListener<org.xnio.StreamConnection>, java.util.EventListener
    All Known Subinterfaces:
    DelegateOpenListener
    All Known Implementing Classes:
    AjpOpenListener, AlpnOpenListener, Http2OpenListener, HttpOpenListener

    public interface OpenListener
    extends org.xnio.ChannelListener<org.xnio.StreamConnection>
    Interface that represents an open listener, aka a connector.
    Author:
    Stuart Douglas
    • Method Detail

      • getRootHandler

        HttpHandler getRootHandler()
        Returns:
        The first handler that will be executed by requests on the connector
      • setRootHandler

        void setRootHandler​(HttpHandler rootHandler)
        Sets the root handler
        Parameters:
        rootHandler - The new root handler
      • getUndertowOptions

        org.xnio.OptionMap getUndertowOptions()
        Returns:
        The connector options
      • setUndertowOptions

        void setUndertowOptions​(org.xnio.OptionMap undertowOptions)
        Parameters:
        undertowOptions - The connector options
      • getBufferPool

        ByteBufferPool getBufferPool()
        Returns:
        The buffer pool in use by this connector
      • getConnectorStatistics

        ConnectorStatistics getConnectorStatistics()
        Returns:
        The connector statistics, or null if statistics gathering is disabled.