Class Http11NioProtocol

    • Constructor Detail

      • Http11NioProtocol

        public Http11NioProtocol()
        Constructs a new Http11NioProtocol with a default NIO endpoint.
      • Http11NioProtocol

        public Http11NioProtocol​(NioEndpoint endpoint)
        Constructs a new Http11NioProtocol with the specified endpoint.
        Parameters:
        endpoint - the NIO endpoint to use
    • Method Detail

      • getLog

        protected Log getLog()
        Description copied from class: AbstractProtocol
        Concrete implementations need to provide access to their logger to be used by the abstract classes.
        Specified by:
        getLog in class AbstractProtocol<NioChannel>
        Returns:
        the logger
      • setSelectorTimeout

        public void setSelectorTimeout​(long timeout)
        Sets the selector timeout for the NIO endpoint.
        Parameters:
        timeout - the selector timeout in milliseconds
      • getSelectorTimeout

        public long getSelectorTimeout()
        Gets the selector timeout for the NIO endpoint.
        Returns:
        the selector timeout in milliseconds
      • setPollerThreadPriority

        public void setPollerThreadPriority​(int threadPriority)
        Sets the poller thread priority for the NIO endpoint.
        Parameters:
        threadPriority - the poller thread priority
      • getPollerThreadPriority

        public int getPollerThreadPriority()
        Gets the poller thread priority for the NIO endpoint.
        Returns:
        the poller thread priority
      • getNamePrefix

        protected java.lang.String getNamePrefix()
        Description copied from class: AbstractProtocol
        Obtain the prefix to be used when construction a name for this protocol handler. The name will be prefix-address-port.
        Specified by:
        getNamePrefix in class AbstractProtocol<NioChannel>
        Returns:
        the prefix