Interface AsyncClientHandler
-
- All Superinterfaces:
AutoCloseable,software.amazon.awssdk.utils.SdkAutoCloseable
- All Known Implementing Classes:
BaseAsyncClientHandler,SdkAsyncClientHandler
public interface AsyncClientHandler extends software.amazon.awssdk.utils.SdkAutoCloseableClient interface to invoke an API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <InputT extends SdkRequest,OutputT extends SdkResponse>
CompletableFuture<OutputT>execute(ClientExecutionParams<InputT,OutputT> executionParams)Execute's a web service request.<InputT extends SdkRequest,OutputT extends SdkResponse,ReturnT>
CompletableFuture<ReturnT>execute(ClientExecutionParams<InputT,OutputT> executionParams, AsyncResponseTransformer<OutputT,ReturnT> asyncResponseTransformer)Execute's a streaming web service request.
-
-
-
Method Detail
-
execute
<InputT extends SdkRequest,OutputT extends SdkResponse> CompletableFuture<OutputT> execute(ClientExecutionParams<InputT,OutputT> executionParams)
Execute's a web service request. Handles marshalling and unmarshalling of data and making the underlying HTTP call(s).- Type Parameters:
InputT- Input POJO typeOutputT- Output POJO type- Parameters:
executionParams- Parameters specific to this invocation of an API.- Returns:
- Unmarshalled output POJO type.
-
execute
<InputT extends SdkRequest,OutputT extends SdkResponse,ReturnT> CompletableFuture<ReturnT> execute(ClientExecutionParams<InputT,OutputT> executionParams, AsyncResponseTransformer<OutputT,ReturnT> asyncResponseTransformer)
Execute's a streaming web service request. Handles marshalling and unmarshalling of data and making the underlying HTTP call(s).- Type Parameters:
InputT- Input POJO typeOutputT- Output POJO typeReturnT- 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.
-
-