Class Http11NioProtocol

  • All Implemented Interfaces:
    javax.management.MBeanRegistration, ProtocolHandler
    Direct Known Subclasses:
    Http11Protocol

    public class Http11NioProtocol
    extends AbstractHttp11JsseProtocol<NioChannel>
    Abstract the protocol implementation, including threading, etc. Processor is single threaded and specific to stream-based protocols, will not fit Jk protocols like JNI.
    Author:
    Remy Maucherat, Costin Manolache
    • Constructor Detail

      • Http11NioProtocol

        public Http11NioProtocol()
    • 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
      • setPollerThreadCount

        @Deprecated
        public void setPollerThreadCount​(int count)
        Deprecated.
        This setter will be removed in Tomcat 10.
        NO-OP.
        Parameters:
        count - Unused
      • getPollerThreadCount

        @Deprecated
        public int getPollerThreadCount()
        Deprecated.
        This getter will be removed in Tomcat 10.
        Always returns 1.
        Returns:
        1
      • setSelectorTimeout

        public void setSelectorTimeout​(long timeout)
      • getSelectorTimeout

        public long getSelectorTimeout()
      • setPollerThreadPriority

        public void setPollerThreadPriority​(int threadPriority)
      • getPollerThreadPriority

        public int getPollerThreadPriority()
      • 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