Class Http2CConnectorFactory

java.lang.Object
io.dropwizard.jetty.HttpConnectorFactory
io.dropwizard.http2.Http2CConnectorFactory
All Implemented Interfaces:
Discoverable, ConnectorFactory

public class Http2CConnectorFactory extends HttpConnectorFactory
Builds HTTP/2 clear text (h2c) 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:
  • Constructor Details

    • Http2CConnectorFactory

      public Http2CConnectorFactory()
  • Method Details

    • 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 HttpConnectorFactory
      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