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
public final class SdkHttpConfigurationOption<T> extends AttributeMap.Key<T>
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:
AttributeMap
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.awssdk.utils.AttributeMap.Key
AttributeMap.Key.UnsafeValueType
-
-
Field Summary
Fields Modifier and Type Field 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<ProtocolNegotiation>
PROTOCOL_NEGOTIATION
HTTP protocol negotiation 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 theCONNECTION_MAX_IDLE_TIMEOUT
has passed.static SdkHttpConfigurationOption<Boolean>
TCP_KEEPALIVE
Whether to enable or disable TCP KeepAlive.static SdkHttpConfigurationOption<TlsKeyManagersProvider>
TLS_KEY_MANAGERS_PROVIDER
TheTlsKeyManagersProvider
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
TheTlsTrustManagersProvider
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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
name()
Note that the name is mainly used for debugging purposes.String
toString()
-
Methods inherited from class software.amazon.awssdk.utils.AttributeMap.Key
convertValue
-
-
-
-
Field Detail
-
READ_TIMEOUT
public static final SdkHttpConfigurationOption<Duration> READ_TIMEOUT
Timeout for each read to the underlying socket.
-
WRITE_TIMEOUT
public static final SdkHttpConfigurationOption<Duration> WRITE_TIMEOUT
Timeout for each write to the underlying socket.
-
CONNECTION_TIMEOUT
public static final SdkHttpConfigurationOption<Duration> CONNECTION_TIMEOUT
Timeout for establishing a connection to a remote service.
-
CONNECTION_ACQUIRE_TIMEOUT
public static final SdkHttpConfigurationOption<Duration> CONNECTION_ACQUIRE_TIMEOUT
Timeout for acquiring an already-established connection from a connection pool to a remote service.
-
CONNECTION_MAX_IDLE_TIMEOUT
public static final SdkHttpConfigurationOption<Duration> CONNECTION_MAX_IDLE_TIMEOUT
Timeout after which an idle connection should be closed.
-
CONNECTION_TIME_TO_LIVE
public static final SdkHttpConfigurationOption<Duration> 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
public static final SdkHttpConfigurationOption<Integer> MAX_CONNECTIONS
Maximum number of connections allowed in a connection pool.
-
PROTOCOL
public static final SdkHttpConfigurationOption<Protocol> PROTOCOL
HTTP protocol to use.
-
PROTOCOL_NEGOTIATION
public static final SdkHttpConfigurationOption<ProtocolNegotiation> PROTOCOL_NEGOTIATION
HTTP protocol negotiation to use.
-
MAX_PENDING_CONNECTION_ACQUIRES
public static final SdkHttpConfigurationOption<Integer> MAX_PENDING_CONNECTION_ACQUIRES
Maximum number of requests allowed to wait for a connection.
-
REAP_IDLE_CONNECTIONS
public static final SdkHttpConfigurationOption<Boolean> REAP_IDLE_CONNECTIONS
Whether idle connection should be removed after theCONNECTION_MAX_IDLE_TIMEOUT
has passed.
-
TCP_KEEPALIVE
public static final SdkHttpConfigurationOption<Boolean> 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
public static final SdkHttpConfigurationOption<TlsKeyManagersProvider> TLS_KEY_MANAGERS_PROVIDER
TheTlsKeyManagersProvider
that will be used by the HTTP client when authenticating with a TLS host.
-
TRUST_ALL_CERTIFICATES
public static final SdkHttpConfigurationOption<Boolean> 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_PROVIDER
TheTlsTrustManagersProvider
that will be used by the HTTP client when authenticating with a TLS host.
-
TLS_NEGOTIATION_TIMEOUT
public static final 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.If not specified, the default value will be the same as the resolved
CONNECTION_TIMEOUT
.
-
GLOBAL_HTTP_DEFAULTS
public static final AttributeMap GLOBAL_HTTP_DEFAULTS
-
-
Method Detail
-
name
public String 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
public String toString()
- Overrides:
toString
in classAttributeMap.Key<T>
-
-