Class S3CrtAsyncHttpClient

java.lang.Object
software.amazon.awssdk.services.s3.internal.crt.S3CrtAsyncHttpClient
All Implemented Interfaces:
AutoCloseable, SdkAsyncHttpClient, SdkAutoCloseable

public final class S3CrtAsyncHttpClient extends Object implements SdkAsyncHttpClient
An implementation of SdkAsyncHttpClient that uses an CRT S3 HTTP client S3Client to communicate with S3. Note that it does not work with other services
  • Method Details

    • s3ClientOptions

      public software.amazon.awssdk.crt.s3.S3ClientOptions s3ClientOptions()
    • execute

      public CompletableFuture<Void> execute(AsyncExecuteRequest asyncRequest)
      Description copied from interface: SdkAsyncHttpClient
      Execute the request.
      Specified by:
      execute in interface SdkAsyncHttpClient
      Parameters:
      asyncRequest - The request object.
      Returns:
      The future holding the result of the request execution. Upon success execution of the request, the future is completed with null, otherwise it is completed exceptionally.
    • clientName

      public String clientName()
      Description copied from interface: SdkAsyncHttpClient
      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, Apache, for requests using Apache's http client or NettyNio for Netty's http client.
      Specified by:
      clientName in interface SdkAsyncHttpClient
      Returns:
      String containing the name of the client
    • close

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

      public static S3CrtAsyncHttpClient.Builder builder()