public static interface NettySdkHttpClientFactory.Builder extends CopyableBuilder<NettySdkHttpClientFactory.Builder,NettySdkHttpClientFactory>
NettySdkHttpClientFactory.NettySdkHttpClientFactory.builder()| Modifier and Type | Method and Description |
|---|---|
NettySdkHttpClientFactory.Builder |
connectionAcquisitionTimeout(Duration timeout)
The amount of time to wait when acquiring a connection from the pool before giving up and timing out.
|
NettySdkHttpClientFactory.Builder |
connectionTimeout(Duration timeout)
The amount of time to wait when initially establishing a connection before giving up and timing out.
|
default NettySdkHttpClientFactory.Builder |
eventLoopGroupConfiguration(Consumer<EventLoopGroupConfiguration.Builder> eventLoopGroupConfiguration)
Configuration for the Netty
EventLoopGroup which multiplexes IO events. |
NettySdkHttpClientFactory.Builder |
eventLoopGroupConfiguration(EventLoopGroupConfiguration eventLoopGroupConfiguration)
Configuration for the Netty
EventLoopGroup which multiplexes IO events. |
NettySdkHttpClientFactory.Builder |
maxConnectionsPerEndpoint(Integer maxConnectionsPerEndpoint)
Max allowed connections per endpoint allowed in the connection pool.
|
NettySdkHttpClientFactory.Builder |
readTimeout(Duration timeout)
The amount of time to wait for a read on a socket before an exception is thrown.
|
NettySdkHttpClientFactory.Builder |
trustAllCertificates(Boolean trustAllCertificates)
Forces the HTTP client to trust all certificates, even invalid or self signed certificates.
|
NettySdkHttpClientFactory.Builder |
writeTimeout(Duration timeout)
The amount of time to wait for a write on a socket before an exception is thrown.
|
copyapply, buildNettySdkHttpClientFactory.Builder maxConnectionsPerEndpoint(Integer maxConnectionsPerEndpoint)
maxConnectionsPerEndpoint - New value for max connections per endpoint.NettySdkHttpClientFactory.Builder readTimeout(Duration timeout)
Duration cannot be converted
to a whole second an exception will be throwntimeout - timeout durationNettySdkHttpClientFactory.Builder writeTimeout(Duration timeout)
Duration cannot be converted
to a whole second an exception will be throwntimeout - timeout durationNettySdkHttpClientFactory.Builder connectionTimeout(Duration timeout)
NettySdkHttpClientFactory.connectionTimeout() if not set.timeout - the timeout durationNettySdkHttpClientFactory.Builder connectionAcquisitionTimeout(Duration timeout)
timeout - the timeout durationNettySdkHttpClientFactory.Builder trustAllCertificates(Boolean trustAllCertificates)
trustAllCertificates - Whether to trust all certificates. The default is false and only valid certificates
whose trust can be verified via the trust store will be trusted.NettySdkHttpClientFactory.Builder eventLoopGroupConfiguration(EventLoopGroupConfiguration eventLoopGroupConfiguration)
EventLoopGroup which multiplexes IO events.
If none is provided then a default EventLoopGroup will be used. This default EventLoopGroup will be
shared across all HTTP client instances and will be automatically shutdown by the SDK when no references to it remain.
eventLoopGroupConfiguration - New configuration object.default NettySdkHttpClientFactory.Builder eventLoopGroupConfiguration(Consumer<EventLoopGroupConfiguration.Builder> eventLoopGroupConfiguration)
EventLoopGroup which multiplexes IO events.eventLoopGroupConfiguration - consumer that allows a EventLoopGroupConfiguration.Builder to be mutated.eventLoopGroupConfiguration(EventLoopGroupConfiguration)Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.