Class SdkDefaultClientBuilder.NonManagedSdkHttpClient

  • All Implemented Interfaces:
    AutoCloseable, software.amazon.awssdk.http.SdkHttpClient, software.amazon.awssdk.utils.SdkAutoCloseable
    Enclosing class:
    SdkDefaultClientBuilder<B extends SdkClientBuilder<B,​C>,​C>

    public static final class SdkDefaultClientBuilder.NonManagedSdkHttpClient
    extends Object
    implements software.amazon.awssdk.http.SdkHttpClient
    Wrapper around SdkHttpClient to prevent it from being closed. Used when the customer provides an already built client in which case they are responsible for the lifecycle of it.
    • Method Detail

      • prepareRequest

        public software.amazon.awssdk.http.ExecutableHttpRequest prepareRequest​(software.amazon.awssdk.http.HttpExecuteRequest request)
        Specified by:
        prepareRequest in interface software.amazon.awssdk.http.SdkHttpClient
      • close

        public void close()
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface software.amazon.awssdk.utils.SdkAutoCloseable
      • clientName

        public String clientName()
        Specified by:
        clientName in interface software.amazon.awssdk.http.SdkHttpClient