T
- Type of optionpublic final class SdkHttpConfigurationOption<T> extends AttributeMap.Key<T>
AttributeMap
AttributeMap.Key.UnsafeValueType
Modifier and Type | Field and Description |
---|---|
static SdkHttpConfigurationOption<Duration> |
CONNECTION_ACQUIRE_TIMEOUT
Timeout for acquiring an already-established connection from a connection pool to a remote service.
|
static SdkHttpConfigurationOption<Duration> |
CONNECTION_MAX_IDLE_TIMEOUT
Timeout after which an idle connection should be closed.
|
static SdkHttpConfigurationOption<Duration> |
CONNECTION_TIME_TO_LIVE
Timeout after which a connection should be closed, regardless of whether it is idle.
|
static SdkHttpConfigurationOption<Duration> |
CONNECTION_TIMEOUT
Timeout for establishing a connection to a remote service.
|
static AttributeMap |
GLOBAL_HTTP_DEFAULTS |
static SdkHttpConfigurationOption<Integer> |
MAX_CONNECTIONS
Maximum number of connections allowed in a connection pool.
|
static SdkHttpConfigurationOption<Integer> |
MAX_PENDING_CONNECTION_ACQUIRES
Maximum number of requests allowed to wait for a connection.
|
static SdkHttpConfigurationOption<Protocol> |
PROTOCOL
HTTP protocol to use.
|
static SdkHttpConfigurationOption<Duration> |
READ_TIMEOUT
Timeout for each read to the underlying socket.
|
static SdkHttpConfigurationOption<Boolean> |
REAP_IDLE_CONNECTIONS
Whether idle connection should be removed after the
CONNECTION_MAX_IDLE_TIMEOUT has passed. |
static SdkHttpConfigurationOption<Boolean> |
TCP_KEEPALIVE
Whether to enable or disable TCP KeepAlive.
|
static SdkHttpConfigurationOption<TlsKeyManagersProvider> |
TLS_KEY_MANAGERS_PROVIDER
The
TlsKeyManagersProvider that will be used by the HTTP client when authenticating with a
TLS host. |
static SdkHttpConfigurationOption<Duration> |
TLS_NEGOTIATION_TIMEOUT
The maximum amount of time that a TLS handshake is allowed to take from the time the CLIENT HELLO
message is sent to the time the client and server have fully negotiated ciphers and exchanged keys.
|
static SdkHttpConfigurationOption<TlsTrustManagersProvider> |
TLS_TRUST_MANAGERS_PROVIDER
The
TlsTrustManagersProvider that will be used by the HTTP client when authenticating with a
TLS host. |
static SdkHttpConfigurationOption<Boolean> |
TRUST_ALL_CERTIFICATES
Option to disable SSL cert validation and SSL host name verification.
|
static SdkHttpConfigurationOption<Duration> |
WRITE_TIMEOUT
Timeout for each write to the underlying socket.
|
Modifier and Type | Method and Description |
---|---|
String |
name()
Note that the name is mainly used for debugging purposes.
|
String |
toString() |
convertValue
public static final SdkHttpConfigurationOption<Duration> READ_TIMEOUT
public static final SdkHttpConfigurationOption<Duration> WRITE_TIMEOUT
public static final SdkHttpConfigurationOption<Duration> CONNECTION_TIMEOUT
public static final SdkHttpConfigurationOption<Duration> CONNECTION_ACQUIRE_TIMEOUT
public static final SdkHttpConfigurationOption<Duration> CONNECTION_MAX_IDLE_TIMEOUT
public static final SdkHttpConfigurationOption<Duration> CONNECTION_TIME_TO_LIVE
public static final SdkHttpConfigurationOption<Integer> MAX_CONNECTIONS
public static final SdkHttpConfigurationOption<Protocol> PROTOCOL
public static final SdkHttpConfigurationOption<Integer> MAX_PENDING_CONNECTION_ACQUIRES
public static final SdkHttpConfigurationOption<Boolean> REAP_IDLE_CONNECTIONS
CONNECTION_MAX_IDLE_TIMEOUT
has passed.public static final SdkHttpConfigurationOption<Boolean> TCP_KEEPALIVE
When enabled, the actual KeepAlive mechanism is dependent on the Operating System and therefore additional TCP KeepAlive values (like timeout, number of packets, etc) must be configured via the Operating System (sysctl on Linux/Mac, and Registry values on Windows).
public static final SdkHttpConfigurationOption<TlsKeyManagersProvider> TLS_KEY_MANAGERS_PROVIDER
TlsKeyManagersProvider
that will be used by the HTTP client when authenticating with a
TLS host.public static final SdkHttpConfigurationOption<Boolean> TRUST_ALL_CERTIFICATES
public static final SdkHttpConfigurationOption<TlsTrustManagersProvider> TLS_TRUST_MANAGERS_PROVIDER
TlsTrustManagersProvider
that will be used by the HTTP client when authenticating with a
TLS host.public static final SdkHttpConfigurationOption<Duration> TLS_NEGOTIATION_TIMEOUT
If not specified, the default value will be the same as the resolved CONNECTION_TIMEOUT
.
public static final AttributeMap GLOBAL_HTTP_DEFAULTS
public String name()
AttributeMap
.Copyright © 2022. All rights reserved.