Interface AsyncResponseTransformer.SplitResult<ResponseT,ResultT>
- Type Parameters:
ResponseT
- ResponseT of the original AsyncResponseTransformer that was split.ResultT
- ResultT of the original AsyncResponseTransformer that was split.
- All Superinterfaces:
ToCopyableBuilder<AsyncResponseTransformer.SplitResult.Builder<ResponseT,
ResultT>, AsyncResponseTransformer.SplitResult<ResponseT, ResultT>>
- All Known Implementing Classes:
DefaultAsyncResponseTransformerSplitResult
- Enclosing interface:
AsyncResponseTransformer<ResponseT,
ResultT>
public static interface AsyncResponseTransformer.SplitResult<ResponseT,ResultT>
extends ToCopyableBuilder<AsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT>,AsyncResponseTransformer.SplitResult<ResponseT,ResultT>>
Helper interface containing the result of
splitting
an AsyncResponseTransformer. This class holds both the publisher of the individual
AsyncResponseTransformer<ResponseT, ResponseT>
and the CompletableFuture <ResultT>
which will
complete when the AsyncResponseTransformer
that was split itself would complete.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
-
Method Summary
Modifier and TypeMethodDescriptionstatic <ResponseT,
ResultT>
AsyncResponseTransformer.SplitResult.Builder<ResponseT, ResultT> builder()
The individualAsyncResponseTransformer
will be available through the publisher returned by this method.The future returned by this method will be completed when the future returned by calling theAsyncResponseTransformer.prepare()
method on the AsyncResponseTransformer which was split completes.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy, toBuilder
-
Method Details
-
publisher
SdkPublisher<AsyncResponseTransformer<ResponseT,ResponseT>> publisher()The individualAsyncResponseTransformer
will be available through the publisher returned by this method.- Returns:
- the publisher which publishes the individual
AsyncResponseTransformer
-
resultFuture
CompletableFuture<ResultT> resultFuture()The future returned by this method will be completed when the future returned by calling theAsyncResponseTransformer.prepare()
method on the AsyncResponseTransformer which was split completes.- Returns:
- The future
-
builder
static <ResponseT,ResultT> AsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT> builder()
-