Class AsyncResponseTransformerUtils
- java.lang.Object
-
- software.amazon.awssdk.core.async.AsyncResponseTransformerUtils
-
public final class AsyncResponseTransformerUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <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 Detail
-
wrapWithEndOfStreamFuture
public static <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.
-
-