public final class AsyncResponseTransformerUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <ResponseT,ResultT> |
wrapWithEndOfStreamFuture(AsyncResponseTransformer<ResponseT,ResultT> responseTransformer)
Wrap a
AsyncResponseTransformer 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. |
public static <ResponseT,ResultT> Pair<AsyncResponseTransformer<ResponseT,ResultT>,CompletableFuture<Void>> wrapWithEndOfStreamFuture(AsyncResponseTransformer<ResponseT,ResultT> responseTransformer)
AsyncResponseTransformer
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.Copyright © 2022. All rights reserved.