Package io.dropwizard.http2
Class Http2ConnectorFactory
- java.lang.Object
-
- io.dropwizard.jetty.HttpConnectorFactory
-
- io.dropwizard.jetty.HttpsConnectorFactory
-
- io.dropwizard.http2.Http2ConnectorFactory
-
- All Implemented Interfaces:
io.dropwizard.jackson.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. HttpsConnectorFactory
.- See Also:
HttpsConnectorFactory
-
-
Constructor Summary
Constructors Constructor Description Http2ConnectorFactory()
-
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)
int
getInitialStreamRecvWindow()
int
getMaxConcurrentStreams()
void
setInitialStreamRecvWindow(int initialStreamRecvWindow)
void
setMaxConcurrentStreams(int maxConcurrentStreams)
-
Methods inherited from class io.dropwizard.jetty.HttpsConnectorFactory
buildHttpConfiguration, configureSslContextFactory, getAllowRenegotiation, getCertAlias, getCrlPath, getEnableCRLDP, getEnableOCSP, getEndpointIdentificationAlgorithm, getExcludedCipherSuites, getExcludedProtocols, getJceProvider, getKeyManagerPassword, getKeyStorePassword, getKeyStorePath, getKeyStoreProvider, getKeyStoreType, getMaxCertPathLength, getNeedClientAuth, getOcspResponderUrl, getSupportedCipherSuites, getSupportedProtocols, getTrustStorePassword, getTrustStorePath, getTrustStoreProvider, getTrustStoreType, getValidatePeers, getWantClientAuth, isDisableSniHostCheck, isValidateCerts, isValidKeyStorePassword, isValidKeyStorePath, logSslParameters, setAllowRenegotiation, setCertAlias, setCrlPath, setDisableSniHostCheck, setEnableCRLDP, setEnableOCSP, setEndpointIdentificationAlgorithm, setExcludedCipherSuites, setExcludedProtocols, setJceProvider, setKeyManagerPassword, setKeyStorePassword, setKeyStorePath, setKeyStoreProvider, setKeyStoreType, setMaxCertPathLength, setNeedClientAuth, setOcspResponderUrl, setSupportedCipherSuites, setSupportedProtocols, setTrustStorePassword, setTrustStorePath, setTrustStoreProvider, setTrustStoreType, setValidateCerts, setValidatePeers, setWantClientAuth
-
Methods inherited from class io.dropwizard.jetty.HttpConnectorFactory
admin, application, buildBufferPool, buildConnector, 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)
- Specified by:
build
in interfaceConnectorFactory
- Overrides:
build
in classHttpsConnectorFactory
-
-