Class AwsAsyncClientHandler

All Implemented Interfaces:
AutoCloseable, AsyncClientHandler, SdkAutoCloseable

@ThreadSafe @Immutable public final class AwsAsyncClientHandler extends SdkAsyncClientHandler implements AsyncClientHandler
Async client handler for AWS SDK clients.
  • Constructor Details

  • Method Details

    • execute

      public <InputT extends SdkRequest, OutputT extends SdkResponse> CompletableFuture<OutputT> execute(ClientExecutionParams<InputT,OutputT> executionParams)
      Description copied from interface: AsyncClientHandler
      Execute's a web service request. Handles marshalling and unmarshalling of data and making the underlying HTTP call(s).
      Specified by:
      execute in interface AsyncClientHandler
      Overrides:
      execute in class BaseAsyncClientHandler
      Type Parameters:
      InputT - Input POJO type
      OutputT - Output POJO type
      Parameters:
      executionParams - Parameters specific to this invocation of an API.
      Returns:
      Unmarshalled output POJO type.
    • execute

      public <InputT extends SdkRequest, OutputT extends SdkResponse, ReturnT> CompletableFuture<ReturnT> execute(ClientExecutionParams<InputT,OutputT> executionParams, AsyncResponseTransformer<OutputT,ReturnT> asyncResponseTransformer)
      Description copied from interface: AsyncClientHandler
      Execute's a streaming web service request. Handles marshalling and unmarshalling of data and making the underlying HTTP call(s).
      Specified by:
      execute in interface AsyncClientHandler
      Overrides:
      execute in class BaseAsyncClientHandler
      Type Parameters:
      InputT - Input POJO type
      OutputT - Output POJO type
      ReturnT - Transformed result returned by asyncResponseTransformer.
      Parameters:
      executionParams - Parameters specific to this invocation of an API.
      asyncResponseTransformer - Response handler to consume streaming data in an asynchronous fashion.
      Returns:
      CompletableFuture containing transformed result type as returned by asyncResponseTransformer.