public static class SyncHttpClientConfig.ApacheHttpClientConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SyncHttpClientConfig.ApacheHttpClientConfig.HttpClientProxyConfiguration |
| 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.
|
Optional<Duration> |
connectionTimeToLive
The maximum amount of time that a connection should be allowed to remain open, regardless of usage frequency.
|
boolean |
expectContinueEnabled
Whether the client should send an HTTP expect-continue handshake before each request.
|
int |
maxConnections
The maximum number of connections allowed in the connection pool.
|
SyncHttpClientConfig.ApacheHttpClientConfig.HttpClientProxyConfiguration |
proxy
HTTP proxy configuration
|
boolean |
useIdleConnectionReaper
Whether the idle connections in the connection pool should be closed asynchronously.
|
| Constructor and Description |
|---|
ApacheHttpClientConfig() |
@ConfigItem(defaultValue="10S") public Duration connectionAcquisitionTimeout
@ConfigItem(defaultValue="60S") public Duration connectionMaxIdleTime
@ConfigItem public Optional<Duration> connectionTimeToLive
@ConfigItem(defaultValue="50") public int maxConnections
Each built HTTP client has its own private connection pool.
@ConfigItem(defaultValue="true") public boolean expectContinueEnabled
@ConfigItem(defaultValue="true") public boolean useIdleConnectionReaper
When enabled, connections left idling for longer than `quarkus.
@ConfigItem public SyncHttpClientConfig.ApacheHttpClientConfig.HttpClientProxyConfiguration proxy
Copyright © 2020 JBoss by Red Hat. All rights reserved.