Class BaseAsyncClientHandler
- java.lang.Object
-
- software.amazon.awssdk.core.internal.handler.BaseClientHandler
-
- software.amazon.awssdk.core.internal.handler.BaseAsyncClientHandler
-
- All Implemented Interfaces:
AutoCloseable,AsyncClientHandler,software.amazon.awssdk.utils.SdkAutoCloseable
- Direct Known Subclasses:
SdkAsyncClientHandler
public abstract class BaseAsyncClientHandler extends BaseClientHandler implements AsyncClientHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseAsyncClientHandler(SdkClientConfiguration clientConfiguration, AmazonAsyncHttpClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()<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.-
Methods inherited from class software.amazon.awssdk.core.internal.handler.BaseClientHandler
invokeInterceptorsAndCreateExecutionContext, isCalculateCrc32FromCompressedData, resolveRequestConfiguration, validateSigningConfiguration
-
-
-
-
Constructor Detail
-
BaseAsyncClientHandler
protected BaseAsyncClientHandler(SdkClientConfiguration clientConfiguration, AmazonAsyncHttpClient client)
-
-
Method Detail
-
execute
public <InputT extends SdkRequest,OutputT extends SdkResponse> CompletableFuture<OutputT> execute(ClientExecutionParams<InputT,OutputT> executionParams)
Description copied from interface:AsyncClientHandlerExecute's a web service request. Handles marshalling and unmarshalling of data and making the underlying HTTP call(s).- Specified by:
executein interfaceAsyncClientHandler- 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
public <InputT extends SdkRequest,OutputT extends SdkResponse,ReturnT> CompletableFuture<ReturnT> execute(ClientExecutionParams<InputT,OutputT> executionParams, AsyncResponseTransformer<OutputT,ReturnT> asyncResponseTransformer)
Description copied from interface:AsyncClientHandlerExecute's a streaming web service request. Handles marshalling and unmarshalling of data and making the underlying HTTP call(s).- Specified by:
executein interfaceAsyncClientHandler- 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.
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacesoftware.amazon.awssdk.utils.SdkAutoCloseable
-
-