public static interface AwsCrtAsyncHttpClient.Builder extends SdkAsyncHttpClient.Builder<AwsCrtAsyncHttpClient.Builder>
| Modifier and Type | Method and Description |
|---|---|
AwsCrtAsyncHttpClient.Builder |
connectionHealthConfiguration(ConnectionHealthConfiguration healthChecksConfiguration)
Configure the health checks for all connections established by this client.
|
AwsCrtAsyncHttpClient.Builder |
connectionHealthConfiguration(Consumer<ConnectionHealthConfiguration.Builder> healthChecksConfigurationBuilder)
A convenience method that creates an instance of the
ConnectionHealthConfiguration builder, avoiding the
need to create one manually via ConnectionHealthConfiguration.builder(). |
AwsCrtAsyncHttpClient.Builder |
connectionMaxIdleTime(Duration connectionMaxIdleTime)
Configure the maximum amount of time that a connection should be allowed to remain open while idle.
|
AwsCrtAsyncHttpClient.Builder |
connectionTimeout(Duration connectionTimeout)
The amount of time to wait when initially establishing a connection before giving up and timing out.
|
AwsCrtAsyncHttpClient.Builder |
maxConcurrency(Integer maxConcurrency)
The Maximum number of allowed concurrent requests.
|
AwsCrtAsyncHttpClient.Builder |
postQuantumTlsEnabled(Boolean postQuantumTlsEnabled)
Configure whether to enable a hybrid post-quantum key exchange option for the Transport Layer Security (TLS) network
encryption protocol when communicating with services that support Post Quantum TLS.
|
AwsCrtAsyncHttpClient.Builder |
proxyConfiguration(Consumer<ProxyConfiguration.Builder> proxyConfigurationBuilderConsumer)
Sets the http proxy configuration to use for this client.
|
AwsCrtAsyncHttpClient.Builder |
proxyConfiguration(ProxyConfiguration proxyConfiguration)
Sets the http proxy configuration to use for this client.
|
AwsCrtAsyncHttpClient.Builder |
readBufferSizeInBytes(Long readBufferSize)
Configures the number of unread bytes that can be buffered in the
client before we stop reading from the underlying TCP socket and wait for the Subscriber
to read more data.
|
AwsCrtAsyncHttpClient.Builder |
tcpKeepAliveConfiguration(Consumer<TcpKeepAliveConfiguration.Builder> tcpKeepAliveConfigurationBuilder)
Configure whether to enable
tcpKeepAlive and relevant configuration for all connections established by this
client. |
AwsCrtAsyncHttpClient.Builder |
tcpKeepAliveConfiguration(TcpKeepAliveConfiguration tcpKeepAliveConfiguration)
Configure whether to enable
tcpKeepAlive and relevant configuration for all connections established by this
client. |
build, buildWithDefaultsapplyMutationAwsCrtAsyncHttpClient.Builder maxConcurrency(Integer maxConcurrency)
maxConcurrency - maximum concurrency per endpointAwsCrtAsyncHttpClient.Builder readBufferSizeInBytes(Long readBufferSize)
readBufferSize - The number of bytes that can be buffered.AwsCrtAsyncHttpClient.Builder proxyConfiguration(ProxyConfiguration proxyConfiguration)
proxyConfiguration - The http proxy configuration to useAwsCrtAsyncHttpClient.Builder proxyConfiguration(Consumer<ProxyConfiguration.Builder> proxyConfigurationBuilderConsumer)
proxyConfigurationBuilderConsumer - The consumer of the proxy configuration builder object.AwsCrtAsyncHttpClient.Builder connectionHealthConfiguration(ConnectionHealthConfiguration healthChecksConfiguration)
You can set a throughput threshold for a connection to be considered healthy.
If a connection falls below this threshold (CrtConnectionHealthConfiguration.minimumThroughputInBps()) for the configurable amount
of time (CrtConnectionHealthConfiguration.minimumThroughputTimeout()),
then the connection is considered unhealthy and will be shut down.
By default, monitoring options are disabled. You can enable healthChecks by providing this configuration
and specifying the options for monitoring for the connection manager.
healthChecksConfiguration - The health checks config to useAwsCrtAsyncHttpClient.Builder connectionHealthConfiguration(Consumer<ConnectionHealthConfiguration.Builder> healthChecksConfigurationBuilder)
ConnectionHealthConfiguration builder, avoiding the
need to create one manually via ConnectionHealthConfiguration.builder().healthChecksConfigurationBuilder - The health checks config builder to useconnectionHealthConfiguration(ConnectionHealthConfiguration)AwsCrtAsyncHttpClient.Builder connectionMaxIdleTime(Duration connectionMaxIdleTime)
connectionMaxIdleTime - the maximum amount of connection idle timeAwsCrtAsyncHttpClient.Builder connectionTimeout(Duration connectionTimeout)
connectionTimeout - timeoutAwsCrtAsyncHttpClient.Builder tcpKeepAliveConfiguration(TcpKeepAliveConfiguration tcpKeepAliveConfiguration)
tcpKeepAlive and relevant configuration for all connections established by this
client.
By default, tcpKeepAlive is disabled. You can enable tcpKeepAlive by providing this configuration
and specifying periodic TCP keepalive packet intervals and timeouts. This may be required for certain connections for
longer durations than default socket timeouts.
tcpKeepAliveConfiguration - The TCP keep-alive configuration to useAwsCrtAsyncHttpClient.Builder tcpKeepAliveConfiguration(Consumer<TcpKeepAliveConfiguration.Builder> tcpKeepAliveConfigurationBuilder)
tcpKeepAlive and relevant configuration for all connections established by this
client.
A convenience method that creates an instance of the TcpKeepAliveConfiguration builder, avoiding the
need to create one manually via TcpKeepAliveConfiguration.builder().
tcpKeepAliveConfigurationBuilder - The TCP keep-alive configuration builder to usetcpKeepAliveConfiguration(TcpKeepAliveConfiguration)AwsCrtAsyncHttpClient.Builder postQuantumTlsEnabled(Boolean postQuantumTlsEnabled)
See Using hybrid post-quantum TLS with AWS KMS
It's disabled by default.
postQuantumTlsEnabled - whether to prefer Post Quantum TLSCopyright © 2023. All rights reserved.