Class AwsCrtConfigurationUtils
java.lang.Object
software.amazon.awssdk.http.crt.internal.AwsCrtConfigurationUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic software.amazon.awssdk.crt.io.SocketOptionsbuildSocketOptions(TcpKeepAliveConfiguration tcpKeepAliveConfiguration, Duration connectionTimeout) static software.amazon.awssdk.crt.io.TlsConnectionOptionsbuildTlsConnectionOptions(software.amazon.awssdk.crt.io.TlsContext tlsContext, Duration tlsNegotiationTimeout, String serverName) static software.amazon.awssdk.crt.http.HttpMonitoringOptionsmapReadWriteTimeout(Duration readWriteTimeout) Maps a read/write inactivity timeout onto the CRT throughput monitor that enforces it: a minimum throughput of one byte per second measured over a failure interval ofreadWriteTimeout.static software.amazon.awssdk.crt.io.TlsCipherPreferenceresolveCipherPreference(Boolean postQuantumTlsEnabled) static software.amazon.awssdk.crt.io.TlsContextOptions.TlsVersionsresolveMinTlsVersion(TlsVersion minTlsVersion) Translate the SDK-ownedTlsVersioninto the CRT-nativeTlsContextOptions.TlsVersionsstatic software.amazon.awssdk.crt.http.HttpMonitoringOptionsresolveMonitoringOptions(ConnectionHealthConfiguration healthConfiguration, Duration fallbackTimeout) Resolves the throughput monitor that enforces a connection's read/write inactivity timeout, highest precedence first: an explicitConnectionHealthConfigurationalways wins; otherwise the SDK-resolvedfallbackTimeout:Duration.ZEROapplies nothing, a positive value is mapped. The fallback is only ever supplied to an SDK-managed client.
-
Method Details
-
resolveMonitoringOptions
public static software.amazon.awssdk.crt.http.HttpMonitoringOptions resolveMonitoringOptions(ConnectionHealthConfiguration healthConfiguration, Duration fallbackTimeout) Resolves the throughput monitor that enforces a connection's read/write inactivity timeout, highest precedence first:- an explicit
ConnectionHealthConfigurationalways wins; - otherwise the SDK-resolved
fallbackTimeout:Duration.ZEROapplies nothing, a positive value is mapped.
- an explicit
-
mapReadWriteTimeout
public static software.amazon.awssdk.crt.http.HttpMonitoringOptions mapReadWriteTimeout(Duration readWriteTimeout) Maps a read/write inactivity timeout onto the CRT throughput monitor that enforces it: a minimum throughput of one byte per second measured over a failure interval ofreadWriteTimeout. Because the threshold is a single byte, any byte moved while a stream is pending resets the interval, so the connection is shut down only afterreadWriteTimeoutof continuous zero-byte progress. The interval has whole-second granularity, and CRT rejects an interval below two seconds, so a shorter timeout is raised to that floor. -
buildSocketOptions
public static software.amazon.awssdk.crt.io.SocketOptions buildSocketOptions(TcpKeepAliveConfiguration tcpKeepAliveConfiguration, Duration connectionTimeout) -
buildTlsConnectionOptions
-
resolveCipherPreference
public static software.amazon.awssdk.crt.io.TlsCipherPreference resolveCipherPreference(Boolean postQuantumTlsEnabled) -
resolveMinTlsVersion
public static software.amazon.awssdk.crt.io.TlsContextOptions.TlsVersions resolveMinTlsVersion(TlsVersion minTlsVersion) Translate the SDK-ownedTlsVersioninto the CRT-nativeTlsContextOptions.TlsVersions
-