public class NettyHttpClientConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NettyHttpClientConfig.Http2Config |
static class |
NettyHttpClientConfig.NettyProxyConfiguration |
static class |
NettyHttpClientConfig.SdkEventLoopGroupConfig |
| Modifier and Type | Field and Description |
|---|---|
Duration |
connectionAcquisitionTimeout
The amount of time to wait when acquiring a connection from the pool before giving up and timing out.
|
Duration |
connectionMaxIdleTime
The maximum amount of time that a connection should be allowed to remain open while idle.
|
Duration |
connectionTimeout
The amount of time to wait when initially establishing a connection before giving up and timing out.
|
Optional<Duration> |
connectionTimeToLive
The maximum amount of time that a connection should be allowed to remain open, regardless of usage frequency.
|
NettyHttpClientConfig.SdkEventLoopGroupConfig |
eventLoop
Netty event loop configuration override
|
NettyHttpClientConfig.Http2Config |
http2
HTTP/2 specific configuration
|
int |
maxConcurrency
The maximum number of allowed concurrent requests.
|
int |
maxPendingConnectionAcquires
The maximum number of pending acquires allowed.
|
software.amazon.awssdk.http.Protocol |
protocol
The HTTP protocol to use.
|
NettyHttpClientConfig.NettyProxyConfiguration |
proxy
HTTP proxy configuration
|
Duration |
readTimeout
The amount of time to wait for a read on a socket before an exception is thrown.
|
Optional<io.netty.handler.ssl.SslProvider> |
sslProvider
The SSL Provider to be used in the Netty client.
|
TlsKeyManagersProviderConfig |
tlsKeyManagersProvider
TLS Key Managers provider configuration
|
TlsTrustManagersProviderConfig |
tlsTrustManagersProvider
TLS Trust Managers provider configuration
|
boolean |
useIdleConnectionReaper
Whether the idle connections in the connection pool should be closed.
|
Duration |
writeTimeout
The amount of time to wait for a write on a socket before an exception is thrown.
|
| Constructor and Description |
|---|
NettyHttpClientConfig() |
@ConfigItem(defaultValue="50") public int maxConcurrency
For HTTP/1.1 this is the same as max connections. For HTTP/2 the number of connections that will be used depends on the max streams allowed per connection.
@ConfigItem(defaultValue="10000") public int maxPendingConnectionAcquires
Once this exceeds, acquire tries will be failed.
@ConfigItem(defaultValue="30S") public Duration readTimeout
Specify `0` to disable.
@ConfigItem(defaultValue="30S") public Duration writeTimeout
Specify `0` to disable.
@ConfigItem(defaultValue="10S") public Duration connectionTimeout
@ConfigItem(defaultValue="2S") public Duration connectionAcquisitionTimeout
@ConfigItem public Optional<Duration> connectionTimeToLive
@ConfigItem(defaultValue="60S") public Duration connectionMaxIdleTime
Currently has no effect if `quarkus.
@ConfigItem(defaultValue="true") public boolean useIdleConnectionReaper
When enabled, connections left idling for longer than `quarkus.
@ConfigItem(defaultValue="http1-1") public software.amazon.awssdk.http.Protocol protocol
@ConfigItem public Optional<io.netty.handler.ssl.SslProvider> sslProvider
Default is `OPENSSL` if available, `JDK` otherwise.
@ConfigItem public NettyHttpClientConfig.Http2Config http2
@ConfigItem public NettyHttpClientConfig.NettyProxyConfiguration proxy
@ConfigItem public TlsKeyManagersProviderConfig tlsKeyManagersProvider
@ConfigItem public TlsTrustManagersProviderConfig tlsTrustManagersProvider
@ConfigItem public NettyHttpClientConfig.SdkEventLoopGroupConfig eventLoop
Copyright © 2020 JBoss by Red Hat. All rights reserved.