Class SdkDefaultClientBuilder.NonManagedSdkAsyncHttpClient

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

    public static final class SdkDefaultClientBuilder.NonManagedSdkAsyncHttpClient
    extends Object
    implements software.amazon.awssdk.http.async.SdkAsyncHttpClient
    Wrapper around SdkAsyncHttpClient 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

      • execute

        public CompletableFuture<Void> execute​(software.amazon.awssdk.http.async.AsyncExecuteRequest request)
        Specified by:
        execute in interface software.amazon.awssdk.http.async.SdkAsyncHttpClient
      • clientName

        public String clientName()
        Specified by:
        clientName in interface software.amazon.awssdk.http.async.SdkAsyncHttpClient
      • close

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