Class SdkDefaultClientBuilder.NonManagedSdkHttpClient

java.lang.Object
software.amazon.awssdk.core.client.builder.SdkDefaultClientBuilder.NonManagedSdkHttpClient
All Implemented Interfaces:
AutoCloseable, SdkHttpClient, SdkAutoCloseable
Enclosing class:
SdkDefaultClientBuilder<B extends SdkClientBuilder<B,C>,C>

public static final class SdkDefaultClientBuilder.NonManagedSdkHttpClient extends Object implements 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 Details

    • prepareRequest

      public ExecutableHttpRequest prepareRequest(HttpExecuteRequest request)
      Description copied from interface: SdkHttpClient
      Create a ExecutableHttpRequest that can be used to execute the HTTP request.
      Specified by:
      prepareRequest in interface SdkHttpClient
      Parameters:
      request - Representation of an HTTP request.
      Returns:
      Task that can execute an HTTP request and can be aborted.
    • close

      public void close()
      Description copied from interface: SdkAutoCloseable
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface SdkAutoCloseable
    • clientName

      public String clientName()
      Description copied from interface: SdkHttpClient
      Each HTTP client implementation should return a well-formed client name that allows requests to be identifiable back to the client that made the request. The client name should include the backing implementation as well as the Sync or Async to identify the transmission type of the request. Client names should only include alphanumeric characters. Examples of well formed client names include, ApacheSync, for requests using Apache's synchronous http client or NettyNioAsync for Netty's asynchronous http client.
      Specified by:
      clientName in interface SdkHttpClient
      Returns:
      String containing the name of the client