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: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. 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.Connector
build(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.int
getInitialStreamRecvWindow()
int
getMaxConcurrentStreams()
void
setInitialStreamRecvWindow(int initialStreamRecvWindow)
void
setMaxConcurrentStreams(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, getUriCompliance, 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, setUriCompliance, 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:ConnectorFactory
Create a new connector.- Specified by:
build
in interfaceConnectorFactory
- Overrides:
build
in classHttpConnectorFactory
- Parameters:
server
- the application'sServer
instancemetrics
- the application's metricsname
- the application's namethreadPool
- the application's thread pool- Returns:
- a
Connector
-
-