Package io.dropwizard.http2
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:
For more configuration parameters, seeName Default Description maxConcurrentStreams1024 The maximum number of concurrently open streams allowed on a single HTTP/2 connection. Larger values increase parallelism, but cost a memory commitment. initialStreamRecvWindow65535 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. HttpsConnectorFactory.- See Also:
HttpConnectorFactory
-
-
Constructor Summary
Constructors Constructor Description Http2CConnectorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jetty.server.Connectorbuild(org.eclipse.jetty.server.Server server, com.codahale.metrics.MetricRegistry metrics, String name, @Nullable org.eclipse.jetty.util.thread.ThreadPool threadPool)Create a new connector.intgetInitialStreamRecvWindow()intgetMaxConcurrentStreams()voidsetInitialStreamRecvWindow(int initialStreamRecvWindow)voidsetMaxConcurrentStreams(int maxConcurrentStreams)-
Methods inherited from class io.dropwizard.jetty.HttpConnectorFactory
admin, application, buildBufferPool, buildConnector, buildHttpConfiguration, buildHttpConnectionFactory, getAcceptorThreads, getAcceptQueueSize, getBindHost, getBufferPoolIncrement, getHeaderCacheSize, getHttpCompliance, getIdleTimeout, getInputBufferSize, getMaxBufferPoolSize, getMaxRequestHeaderSize, getMaxResponseHeaderSize, getMinBufferPoolSize, getMinRequestDataPerSecond, getMinResponseDataPerSecond, getOutputBufferSize, getPort, getRequestCookieCompliance, getResponseCookieCompliance, getSelectorThreads, httpConnections, isInheritChannel, isReuseAddress, isUseDateHeader, isUseForwardedHeaders, isUseProxyProtocol, isUseServerHeader, setAcceptorThreads, setAcceptQueueSize, setBindHost, setBufferPoolIncrement, setHeaderCacheSize, setHttpCompliance, setIdleTimeout, setInheritChannel, setInputBufferSize, setMaxBufferPoolSize, setMaxRequestHeaderSize, setMaxResponseHeaderSize, setMinBufferPoolSize, setMinRequestDataPerSecond, setMinResponseDataPerSecond, setOutputBufferSize, setPort, setRequestCookieCompliance, setResponseCookieCompliance, setReuseAddress, setSelectorThreads, setUseDateHeader, setUseForwardedHeaders, setUseProxyProtocol, setUseServerHeader
-
-
-
-
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:ConnectorFactoryCreate a new connector.- Specified by:
buildin interfaceConnectorFactory- Overrides:
buildin classHttpConnectorFactory- Parameters:
server- the application'sServerinstancemetrics- the application's metricsname- the application's namethreadPool- the application's thread pool- Returns:
- a
Connector
-
-