Class AsyncResponseTransformerUtils
java.lang.Object
software.amazon.awssdk.core.async.AsyncResponseTransformerUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic <ResponseT,
ResultT>
Pair<AsyncResponseTransformer<ResponseT, ResultT>, CompletableFuture<Void>> wrapWithEndOfStreamFuture
(AsyncResponseTransformer<ResponseT, ResultT> responseTransformer) Wrap aAsyncResponseTransformer
and associate it with a future that is completed upon end-of-stream, regardless of whether the transformer is configured to complete its future upon end-of-response or end-of-stream.
-
Method Details
-
wrapWithEndOfStreamFuture
public static <ResponseT,ResultT> Pair<AsyncResponseTransformer<ResponseT,ResultT>, wrapWithEndOfStreamFutureCompletableFuture<Void>> (AsyncResponseTransformer<ResponseT, ResultT> responseTransformer) Wrap aAsyncResponseTransformer
and associate it with a future that is completed upon end-of-stream, regardless of whether the transformer is configured to complete its future upon end-of-response or end-of-stream.
-