Class AwsCrtConfigurationUtils

java.lang.Object
software.amazon.awssdk.http.crt.internal.AwsCrtConfigurationUtils

@SdkInternalApi public final class AwsCrtConfigurationUtils extends Object
  • 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:
      1. an explicit ConnectionHealthConfiguration always wins;
      2. otherwise the SDK-resolved fallbackTimeout: Duration.ZERO applies nothing, a positive value is mapped.
      The fallback is only ever supplied to an SDK-managed client.
    • 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 of readWriteTimeout. 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 after readWriteTimeout of 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

      public static software.amazon.awssdk.crt.io.TlsConnectionOptions buildTlsConnectionOptions(software.amazon.awssdk.crt.io.TlsContext tlsContext, Duration tlsNegotiationTimeout, String serverName)
    • 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-owned TlsVersion into the CRT-native TlsContextOptions.TlsVersions