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 ofsplittingan AsyncResponseTransformer. This class holds both the publisher of the individualAsyncResponseTransformer<ResponseT, ResponseT>and theCompletableFuture <ResultT>which will complete when theAsyncResponseTransformerthat was split itself would complete.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceAsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT>
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static <ResponseT,ResultT>
AsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT>builder()default BooleanparallelSplitSupported()Indicates if the split async response transformer supports sending individual transformer non-serially and receiving back data from the manypublishersnon-serially.SdkPublisher<AsyncResponseTransformer<ResponseT,ResponseT>>publisher()The individualAsyncResponseTransformerwill be available through the publisher returned by this method.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.-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy, toBuilder
-
-
-
-
Method Detail
-
publisher
SdkPublisher<AsyncResponseTransformer<ResponseT,ResponseT>> publisher()
The individualAsyncResponseTransformerwill 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
-
parallelSplitSupported
default Boolean parallelSplitSupported()
Indicates if the split async response transformer supports sending individual transformer non-serially and receiving back data from the manypublishersnon-serially.- Returns:
- true if non-serial data is supported, false otherwise
-
builder
static <ResponseT,ResultT> AsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT> builder()
-
-