public static interface AwsCrtAsyncHttpClient.Builder extends SdkAsyncHttpClient.Builder<AwsCrtAsyncHttpClient.Builder>
| Modifier and Type | Method and Description |
|---|---|
AwsCrtAsyncHttpClient.Builder |
connectionHealthChecksConfiguration(ConnectionHealthChecksConfiguration healthChecksConfiguration)
Configure the health checks for all connections established by this client.
|
AwsCrtAsyncHttpClient.Builder |
connectionHealthChecksConfiguration(Consumer<ConnectionHealthChecksConfiguration.Builder> healthChecksConfigurationBuilder)
A convenience method to configure the health checks for all connections established by this client.
|
AwsCrtAsyncHttpClient.Builder |
connectionMaxIdleTime(Duration connectionMaxIdleTime)
The amount of time to wait when initially establishing a connection before giving up and timing out.
|
AwsCrtAsyncHttpClient.Builder |
connectionTimeout(Duration connectionTimeout)
Configure connection socket timeout
|
AwsCrtAsyncHttpClient.Builder |
maxConcurrency(int maxConcurrency)
The Maximum number of allowed concurrent requests.
|
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 |
readBufferSize(int 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 TCP Keep-alive and relevant configuration for all connections established by this client.
|
AwsCrtAsyncHttpClient.Builder |
tcpKeepAliveConfiguration(TcpKeepAliveConfiguration tcpKeepAliveConfiguration)
Configure whether to enable TCP Keep-alive and relevant configuration for all connections established by this client.
|
AwsCrtAsyncHttpClient.Builder |
tlsCipherPreference(software.amazon.awssdk.crt.io.TlsCipherPreference tlsCipherPreference)
The AWS CRT TlsCipherPreference to use for this Client
|
build, buildWithDefaultsapplyMutationAwsCrtAsyncHttpClient.Builder maxConcurrency(int maxConcurrency)
maxConcurrency - maximum concurrency per endpointAwsCrtAsyncHttpClient.Builder tlsCipherPreference(software.amazon.awssdk.crt.io.TlsCipherPreference tlsCipherPreference)
tlsCipherPreference - The AWS Common Runtime TlsCipherPreferenceAwsCrtAsyncHttpClient.Builder readBufferSize(int readBufferSize)
readBufferSize - The number of bytes that can be bufferedAwsCrtAsyncHttpClient.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 connectionHealthChecksConfiguration(ConnectionHealthChecksConfiguration healthChecksConfiguration)
eg: you can set a throughput threshold for a connection to be considered healthy. If the connection falls below this threshold for a configurable amount of time, then the connection is considered unhealthy and will be shut down.
healthChecksConfiguration - The health checks config to useAwsCrtAsyncHttpClient.Builder connectionHealthChecksConfiguration(Consumer<ConnectionHealthChecksConfiguration.Builder> healthChecksConfigurationBuilder)
eg: you can set a throughput threshold for a connection to be considered healthy. If the connection falls below this threshold for a configurable amount of time, then the connection is considered unhealthy and will be shut down.
healthChecksConfigurationBuilder - The health checks config builder to useconnectionHealthChecksConfiguration(ConnectionHealthChecksConfiguration)AwsCrtAsyncHttpClient.Builder connectionMaxIdleTime(Duration connectionMaxIdleTime)
Integer.MAX_VALUE, any longer duration will be reduced to the maximum
possible value. If not specified, the connection timeout duration will be set to value defined in
AwsCrtAsyncHttpClient.CRT_SDK_DEFAULT_CONNECTION_TIMEOUT.AwsCrtAsyncHttpClient.Builder connectionTimeout(Duration connectionTimeout)
AwsCrtAsyncHttpClient.Builder tcpKeepAliveConfiguration(TcpKeepAliveConfiguration tcpKeepAliveConfiguration)
By default, keepAlive is disabled and this is not required. tcpKeepAlive is enabled by providing this configuration and specifying periodic 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)
By default, keepAlive is disabled and this is not required. tcpKeepAlive is enabled by providing this configuration and specifying periodic keepalive packet intervals and timeouts This may be required for certain connections for longer durations than default socket timeouts
tcpKeepAliveConfigurationBuilder - The TCP keep-alive configuration builder to useCopyright © 2022. All rights reserved.