Class Http2ConnectorFactory

  • All Implemented Interfaces:
    Discoverable, ConnectorFactory

    public class Http2ConnectorFactory
    extends HttpsConnectorFactory
    Builds HTTP/2 over TLS (h2) connectors.

    Configuration Parameters:

    Name Default Description
    maxConcurrentStreams 1024 The maximum number of concurrently open streams allowed on a single HTTP/2 connection. Larger values increase parallelism, but cost a memory commitment.
    initialStreamRecvWindow 65535 The initial flow control window size for a new stream. Larger values may allow greater throughput, but also risk head of line blocking if TCP/IP flow control is triggered.

    For more configuration parameters, see HttpsConnectorFactory.

    See Also:
    HttpsConnectorFactory
    • Constructor Detail

      • Http2ConnectorFactory

        public Http2ConnectorFactory()
    • Method Detail

      • getMaxConcurrentStreams

        public int getMaxConcurrentStreams()
      • setMaxConcurrentStreams

        public void setMaxConcurrentStreams​(int maxConcurrentStreams)
      • getInitialStreamRecvWindow

        public int getInitialStreamRecvWindow()
      • setInitialStreamRecvWindow

        public void setInitialStreamRecvWindow​(int initialStreamRecvWindow)
      • build

        public org.eclipse.jetty.server.Connector build​(org.eclipse.jetty.server.Server server,
                                                        com.codahale.metrics.MetricRegistry metrics,
                                                        String name,
                                                        @Nullable
                                                        org.eclipse.jetty.util.thread.ThreadPool threadPool)
        Description copied from interface: ConnectorFactory
        Create a new connector.
        Specified by:
        build in interface ConnectorFactory
        Overrides:
        build in class HttpsConnectorFactory
        Parameters:
        server - the application's Server instance
        metrics - the application's metrics
        name - the application's name
        threadPool - the application's thread pool
        Returns:
        a Connector