public static interface NettySdkHttpClientFactory.Builder extends CopyableBuilder<NettySdkHttpClientFactory.Builder,NettySdkHttpClientFactory>
NettySdkHttpClientFactory.NettySdkHttpClientFactory.builder()| Modifier and Type | Method and Description |
|---|---|
NettySdkHttpClientFactory.Builder |
connectionTimeout(Duration socketTimeout)
The amount of time to wait when initially establishing a connection before giving up and timing out.
|
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 |
socketTimeout(Duration socketTimeout)
The amount of time to wait for data to be transferred over an established, open connection before the connection is
timed out.
|
NettySdkHttpClientFactory.Builder |
trustAllCertificates(Boolean trustAllCertificates)
Forces the HTTP client to trust all certificates, even invalid or self signed certificates.
|
copyapply, buildNettySdkHttpClientFactory.Builder maxConnectionsPerEndpoint(Integer maxConnectionsPerEndpoint)
maxConnectionsPerEndpoint - New value for max connections per endpoint.NettySdkHttpClientFactory.Builder socketTimeout(Duration socketTimeout)
NettySdkHttpClientFactory.Builder connectionTimeout(Duration socketTimeout)
NettySdkHttpClientFactory.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.Copyright © 2017. All rights reserved.