Package software.amazon.awssdk.http
Class SdkHttpConfigurationOption<T>
java.lang.Object
software.amazon.awssdk.utils.AttributeMap.Key<T>
software.amazon.awssdk.http.SdkHttpConfigurationOption<T>
- Type Parameters:
T
- Type of option
Type safe key for an HTTP related configuration option. These options are used for service specific configuration
and are treated as hints for the underlying HTTP implementation for better defaults. If an implementation does not support
a particular option, they are free to ignore it.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SdkHttpConfigurationOption
<Duration> Timeout for acquiring an already-established connection from a connection pool to a remote service.static final SdkHttpConfigurationOption
<Duration> Timeout after which an idle connection should be closed.static final SdkHttpConfigurationOption
<Duration> Timeout after which a connection should be closed, regardless of whether it is idle.static final SdkHttpConfigurationOption
<Duration> Timeout for establishing a connection to a remote service.static final AttributeMap
static final SdkHttpConfigurationOption
<Integer> Maximum number of connections allowed in a connection pool.static final SdkHttpConfigurationOption
<Integer> Maximum number of requests allowed to wait for a connection.static final SdkHttpConfigurationOption
<Protocol> HTTP protocol to use.static final SdkHttpConfigurationOption
<Duration> Timeout for each read to the underlying socket.static final SdkHttpConfigurationOption
<Boolean> Whether idle connection should be removed after theCONNECTION_MAX_IDLE_TIMEOUT
has passed.static final SdkHttpConfigurationOption
<Boolean> Whether to enable or disable TCP KeepAlive.static final SdkHttpConfigurationOption
<TlsKeyManagersProvider> TheTlsKeyManagersProvider
that will be used by the HTTP client when authenticating with a TLS host.static final SdkHttpConfigurationOption
<Duration> 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 final SdkHttpConfigurationOption
<TlsTrustManagersProvider> TheTlsTrustManagersProvider
that will be used by the HTTP client when authenticating with a TLS host.static final SdkHttpConfigurationOption
<Boolean> Option to disable SSL cert validation and SSL host name verification.static final SdkHttpConfigurationOption
<Duration> Timeout for each write to the underlying socket. -
Method Summary
Methods inherited from class software.amazon.awssdk.utils.AttributeMap.Key
convertValue
-
Field Details
-
READ_TIMEOUT
Timeout for each read to the underlying socket. -
WRITE_TIMEOUT
Timeout for each write to the underlying socket. -
CONNECTION_TIMEOUT
Timeout for establishing a connection to a remote service. -
CONNECTION_ACQUIRE_TIMEOUT
Timeout for acquiring an already-established connection from a connection pool to a remote service. -
CONNECTION_MAX_IDLE_TIMEOUT
Timeout after which an idle connection should be closed. -
CONNECTION_TIME_TO_LIVE
Timeout after which a connection should be closed, regardless of whether it is idle. Zero indicates an infinite amount of time. -
MAX_CONNECTIONS
Maximum number of connections allowed in a connection pool. -
PROTOCOL
HTTP protocol to use. -
MAX_PENDING_CONNECTION_ACQUIRES
Maximum number of requests allowed to wait for a connection. -
REAP_IDLE_CONNECTIONS
Whether idle connection should be removed after theCONNECTION_MAX_IDLE_TIMEOUT
has passed. -
TCP_KEEPALIVE
Whether to enable or disable 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).
-
TLS_KEY_MANAGERS_PROVIDER
TheTlsKeyManagersProvider
that will be used by the HTTP client when authenticating with a TLS host. -
TRUST_ALL_CERTIFICATES
Option to disable SSL cert validation and SSL host name verification. By default, this option is off. Only enable this option for testing purposes. -
TLS_TRUST_MANAGERS_PROVIDER
public static final SdkHttpConfigurationOption<TlsTrustManagersProvider> TLS_TRUST_MANAGERS_PROVIDERTheTlsTrustManagersProvider
that will be used by the HTTP client when authenticating with a TLS host. -
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.If not specified, the default value will be the same as the resolved
CONNECTION_TIMEOUT
. -
GLOBAL_HTTP_DEFAULTS
-
-
Method Details
-
name
Note that the name is mainly used for debugging purposes. Two option key objects with the same name do not represent the same option. Option keys are compared by reference when obtaining a value from anAttributeMap
.- Returns:
- Name of this option key.
-
toString
- Overrides:
toString
in classAttributeMap.Key<T>
-