Class DefaultAsyncResponseTransformerSplitResult.DefaultBuilder<ResponseT,ResultT>
java.lang.Object
software.amazon.awssdk.core.internal.async.DefaultAsyncResponseTransformerSplitResult.DefaultBuilder<ResponseT,ResultT>
- All Implemented Interfaces:
AsyncResponseTransformer.SplitResult.Builder<ResponseT,,ResultT> Buildable,CopyableBuilder<AsyncResponseTransformer.SplitResult.Builder<ResponseT,,ResultT>, AsyncResponseTransformer.SplitResult<ResponseT, ResultT>> SdkBuilder<AsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT>, AsyncResponseTransformer.SplitResult<ResponseT, ResultT>>
- Enclosing class:
DefaultAsyncResponseTransformerSplitResult<ResponseT,ResultT>
public static class DefaultAsyncResponseTransformerSplitResult.DefaultBuilder<ResponseT,ResultT>
extends Object
implements AsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()An immutable object that is created from the properties that have been set on the builder.If the AsyncResponseTransformers returned by theAsyncResponseTransformer.SplitResult.publisher()support concurrent parallel streaming of multiple content body concurrently.parallelSplitSupported(Boolean parallelSplitSupported) Sets whether the AsyncResponseTransformers returned by theAsyncResponseTransformer.SplitResult.publisher()support concurrent parallel streaming of multiple content body concurrentlypublisher(SdkPublisher<AsyncResponseTransformer<ResponseT, ResponseT>> publisher) Sets the publisher publishing the individualAsyncResponseTransformerresultFuture(CompletableFuture<ResultT> future) Sets the future that will be completed when the future returned by calling theAsyncResponseTransformer.prepare()method on the AsyncResponseTransformer which was split completes.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
Method Details
-
publisher
- Specified by:
publisherin interfaceAsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT> - Returns:
- the publisher which was configured on this Builder instance.
-
publisher
public AsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT> publisher(SdkPublisher<AsyncResponseTransformer<ResponseT, ResponseT>> publisher) Description copied from interface:AsyncResponseTransformer.SplitResult.BuilderSets the publisher publishing the individualAsyncResponseTransformer- Specified by:
publisherin interfaceAsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT> - Parameters:
publisher- the publisher- Returns:
- an instance of this Builder
-
resultFuture
- Specified by:
resultFuturein interfaceAsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT> - Returns:
- The future which was configured an this Builder instance.
-
resultFuture
public AsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT> resultFuture(CompletableFuture<ResultT> future) Description copied from interface:AsyncResponseTransformer.SplitResult.BuilderSets the future that will be completed when the future returned by calling theAsyncResponseTransformer.prepare()method on the AsyncResponseTransformer which was split completes.- Specified by:
resultFuturein interfaceAsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT> - Parameters:
future- the future- Returns:
- an instance of this Builder
-
parallelSplitSupported
Description copied from interface:AsyncResponseTransformer.SplitResult.BuilderIf the AsyncResponseTransformers returned by theAsyncResponseTransformer.SplitResult.publisher()support concurrent parallel streaming of multiple content body concurrently.- Specified by:
parallelSplitSupportedin interfaceAsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT> - Returns:
-
parallelSplitSupported
public AsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT> parallelSplitSupported(Boolean parallelSplitSupported) Description copied from interface:AsyncResponseTransformer.SplitResult.BuilderSets whether the AsyncResponseTransformers returned by theAsyncResponseTransformer.SplitResult.publisher()support concurrent parallel streaming of multiple content body concurrently- Specified by:
parallelSplitSupportedin interfaceAsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT> - Returns:
-
build
Description copied from interface:SdkBuilderAn immutable object that is created from the properties that have been set on the builder.
-