Package io.quarkus.amazon.common.runtime
Interface SyncHttpClientConfig.ApacheHttpClientConfig
- Enclosing interface:
- SyncHttpClientConfig
public static interface SyncHttpClientConfig.ApacheHttpClientConfig
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescription@WithConverter(io.quarkus.runtime.configuration.DurationConverter.class) DurationThe amount of time to wait when acquiring a connection from the pool before giving up and timing out.@WithConverter(io.quarkus.runtime.configuration.DurationConverter.class) DurationThe maximum amount of time that a connection should be allowed to remain open while idle.The maximum amount of time that a connection should be allowed to remain open, regardless of usage frequency.booleanWhether the client should send an HTTP expect-continue handshake before each request.intThe maximum number of connections allowed in the connection pool.proxy()HTTP proxy configurationConfigure whether to enable or disable TCP KeepAlive.booleanWhether the idle connections in the connection pool should be closed asynchronously.
-
Method Details
-
connectionAcquisitionTimeout
@WithDefault("10S") @WithConverter(io.quarkus.runtime.configuration.DurationConverter.class) @WithConverter(io.quarkus.runtime.configuration.DurationConverter.class) Duration connectionAcquisitionTimeout()The amount of time to wait when acquiring a connection from the pool before giving up and timing out. -
connectionMaxIdleTime
@WithDefault("60S") @WithConverter(io.quarkus.runtime.configuration.DurationConverter.class) @WithConverter(io.quarkus.runtime.configuration.DurationConverter.class) Duration connectionMaxIdleTime()The maximum amount of time that a connection should be allowed to remain open while idle. -
connectionTimeToLive
@WithConverter(io.quarkus.runtime.configuration.DurationConverter.class) @WithConverter(io.quarkus.runtime.configuration.DurationConverter.class) Optional<Duration> connectionTimeToLive()The maximum amount of time that a connection should be allowed to remain open, regardless of usage frequency. -
maxConnections
@WithDefault("50") int maxConnections()The maximum number of connections allowed in the connection pool.Each built HTTP client has its own private connection pool.
-
expectContinueEnabled
@WithDefault("true") boolean expectContinueEnabled()Whether the client should send an HTTP expect-continue handshake before each request. -
useIdleConnectionReaper
@WithDefault("true") boolean useIdleConnectionReaper()Whether the idle connections in the connection pool should be closed asynchronously.When enabled, connections left idling for longer than `quarkus.<amazon-service>.sync-client.connection-max-idle-time` will be closed. This will not close connections currently in use.
-
tcpKeepAlive
Configure whether to enable or disable TCP KeepAlive. -
proxy
HTTP proxy configuration
-