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
Builds HTTP/2 over TLS (h2) connectors.
Configuration Parameters:
For more configuration parameters, see
| 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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.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) intintvoidsetInitialStreamRecvWindow(int initialStreamRecvWindow) voidsetMaxConcurrentStreams(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, setWantClientAuthMethods 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, 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
-
Constructor Details
-
Http2ConnectorFactory
public Http2ConnectorFactory()
-
-
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) - Specified by:
buildin interfaceConnectorFactory- Overrides:
buildin classHttpsConnectorFactory
-