Uses of Interface
software.amazon.awssdk.core.async.AsyncResponseTransformer
-
-
Uses of AsyncResponseTransformer in software.amazon.awssdk.core.async
Methods in software.amazon.awssdk.core.async that return AsyncResponseTransformer Modifier and Type Method Description static <ResponseT extends SdkResponse>
AsyncResponseTransformer<ResponseT,ResponseInputStream<ResponseT>>AsyncResponseTransformer. toBlockingInputStream()Creates anAsyncResponseTransformerthat allows reading the response body content as anInputStream.static <ResponseT>
AsyncResponseTransformer<ResponseT,ResponseBytes<ResponseT>>AsyncResponseTransformer. toBytes()Creates anAsyncResponseTransformerthat writes all content to a byte array.static <ResponseT>
AsyncResponseTransformer<ResponseT,ResponseT>AsyncResponseTransformer. toFile(File file)Creates anAsyncResponseTransformerthat writes all the content to the given file.static <ResponseT>
AsyncResponseTransformer<ResponseT,ResponseT>AsyncResponseTransformer. toFile(File file, Consumer<FileTransformerConfiguration.Builder> config)This is a convenience method that creates an instance of theFileTransformerConfigurationbuilder, avoiding the need to create one manually viaFileTransformerConfiguration.builder().static <ResponseT>
AsyncResponseTransformer<ResponseT,ResponseT>AsyncResponseTransformer. toFile(File file, FileTransformerConfiguration config)Creates anAsyncResponseTransformerthat writes all the content to the given file with the specifiedFileTransformerConfiguration.static <ResponseT>
AsyncResponseTransformer<ResponseT,ResponseT>AsyncResponseTransformer. toFile(Path path)Creates anAsyncResponseTransformerthat writes all the content to the given file.static <ResponseT>
AsyncResponseTransformer<ResponseT,ResponseT>AsyncResponseTransformer. toFile(Path path, Consumer<FileTransformerConfiguration.Builder> config)This is a convenience method that creates an instance of theFileTransformerConfigurationbuilder, avoiding the need to create one manually viaFileTransformerConfiguration.builder().static <ResponseT>
AsyncResponseTransformer<ResponseT,ResponseT>AsyncResponseTransformer. toFile(Path path, FileTransformerConfiguration config)Creates anAsyncResponseTransformerthat writes all the content to the given file with the specifiedFileTransformerConfiguration.static <ResponseT extends SdkResponse>
AsyncResponseTransformer<ResponseT,ResponsePublisher<ResponseT>>AsyncResponseTransformer. toPublisher()Creates anAsyncResponseTransformerthat publishes the response body content through aResponsePublisher, which is anSdkPublisherthat also contains a reference to theSdkResponsereturned by the service.static <ResponseT extends SdkResponse>
AsyncResponseTransformer<ResponseT,ResponsePublisher<ResponseT>>AsyncResponseTransformer. toPublisher(Duration timeout)Creates anAsyncResponseTransformerwith a custom timeout that publishes the response body content through aResponsePublisher, which is anSdkPublisherthat also contains a reference to theSdkResponsereturned by the service.Methods in software.amazon.awssdk.core.async that return types with arguments of type AsyncResponseTransformer Modifier and Type Method Description SdkPublisher<AsyncResponseTransformer<ResponseT,ResponseT>>AsyncResponseTransformer.SplitResult.Builder. publisher()SdkPublisher<AsyncResponseTransformer<ResponseT,ResponseT>>AsyncResponseTransformer.SplitResult. publisher()The individualAsyncResponseTransformerwill be available through the publisher returned by this method.static <ResponseT,ResultT>
Pair<AsyncResponseTransformer<ResponseT,ResultT>,CompletableFuture<Void>>AsyncResponseTransformerUtils. wrapWithEndOfStreamFuture(AsyncResponseTransformer<ResponseT,ResultT> responseTransformer)Wrap aAsyncResponseTransformerand 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.Methods in software.amazon.awssdk.core.async with parameters of type AsyncResponseTransformer Modifier and Type Method Description static <ResponseT,ResultT>
Pair<AsyncResponseTransformer<ResponseT,ResultT>,CompletableFuture<Void>>AsyncResponseTransformerUtils. wrapWithEndOfStreamFuture(AsyncResponseTransformer<ResponseT,ResultT> responseTransformer)Wrap aAsyncResponseTransformerand 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 parameters in software.amazon.awssdk.core.async with type arguments of type AsyncResponseTransformer Modifier and Type Method Description AsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT>AsyncResponseTransformer.SplitResult.Builder. publisher(SdkPublisher<AsyncResponseTransformer<ResponseT,ResponseT>> publisher)Sets the publisher publishing the individualAsyncResponseTransformer -
Uses of AsyncResponseTransformer in software.amazon.awssdk.core.async.listener
Classes in software.amazon.awssdk.core.async.listener that implement AsyncResponseTransformer Modifier and Type Class Description static classAsyncResponseTransformerListener.NotifyingAsyncResponseTransformer<ResponseT,ResultT>Methods in software.amazon.awssdk.core.async.listener that return AsyncResponseTransformer Modifier and Type Method Description AsyncResponseTransformer<ResponseT,ResultT>AsyncResponseTransformerListener.NotifyingAsyncResponseTransformer. getDelegate()static <ResponseT,ResultT>
AsyncResponseTransformer<ResponseT,ResultT>AsyncResponseTransformerListener. wrap(AsyncResponseTransformer<ResponseT,ResultT> delegate, AsyncResponseTransformerListener<ResponseT> listener)Wrap aAsyncResponseTransformerwith a new one that will notify aAsyncResponseTransformerListenerof important events occurring.Methods in software.amazon.awssdk.core.async.listener with parameters of type AsyncResponseTransformer Modifier and Type Method Description static <ResponseT,ResultT>
AsyncResponseTransformer<ResponseT,ResultT>AsyncResponseTransformerListener. wrap(AsyncResponseTransformer<ResponseT,ResultT> delegate, AsyncResponseTransformerListener<ResponseT> listener)Wrap aAsyncResponseTransformerwith a new one that will notify aAsyncResponseTransformerListenerof important events occurring. -
Uses of AsyncResponseTransformer in software.amazon.awssdk.core.client.handler
Methods in software.amazon.awssdk.core.client.handler that return AsyncResponseTransformer Modifier and Type Method Description AsyncResponseTransformer<OutputT,?>ClientExecutionParams. getAsyncResponseTransformer()Methods in software.amazon.awssdk.core.client.handler with parameters of type AsyncResponseTransformer Modifier and Type Method Description <InputT extends SdkRequest,OutputT extends SdkResponse,ReturnT>
CompletableFuture<ReturnT>AsyncClientHandler. execute(ClientExecutionParams<InputT,OutputT> executionParams, AsyncResponseTransformer<OutputT,ReturnT> asyncResponseTransformer)Execute's a streaming web service request.ClientExecutionParams<InputT,OutputT>ClientExecutionParams. withAsyncResponseTransformer(AsyncResponseTransformer<OutputT,?> asyncResponseTransformer) -
Uses of AsyncResponseTransformer in software.amazon.awssdk.core.internal.async
Classes in software.amazon.awssdk.core.internal.async that implement AsyncResponseTransformer Modifier and Type Class Description classByteArrayAsyncResponseTransformer<ResponseT>Implementation ofAsyncResponseTransformerthat dumps content into a byte array and supports further conversions into types, like strings.classFileAsyncResponseTransformer<ResponseT>AsyncResponseTransformerthat writes the data to the specified file.classInputStreamResponseTransformer<ResponseT extends SdkResponse>AAsyncResponseTransformerthat allows performing blocking reads on the response data.classPublisherAsyncResponseTransformer<ResponseT extends SdkResponse>Transforms aPublisherAsyncResponseTransformerandByteBufferSdkPublisherinto aResponsePublisher.Methods in software.amazon.awssdk.core.internal.async that return types with arguments of type AsyncResponseTransformer Modifier and Type Method Description SdkPublisher<AsyncResponseTransformer<ResponseT,ResponseT>>DefaultAsyncResponseTransformerSplitResult.DefaultBuilder. publisher()SdkPublisher<AsyncResponseTransformer<ResponseT,ResponseT>>DefaultAsyncResponseTransformerSplitResult. publisher()The individualAsyncResponseTransformerwill be available through the publisher returned by this method.Methods in software.amazon.awssdk.core.internal.async with parameters of type AsyncResponseTransformer Modifier and Type Method Description SplittingTransformer.Builder<ResponseT,ResultT>SplittingTransformer.Builder. upstreamResponseTransformer(AsyncResponseTransformer<ResponseT,ResultT> upstreamResponseTransformer)TheAsyncResponseTransformerthat will receive the data from each of the individually publishedIndividualTransformer, usually intended to be the one on which thesplit(SplittingTransformerConfiguration))} method was called.Method parameters in software.amazon.awssdk.core.internal.async with type arguments of type AsyncResponseTransformer Modifier and Type Method Description AsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT>DefaultAsyncResponseTransformerSplitResult.DefaultBuilder. publisher(SdkPublisher<AsyncResponseTransformer<ResponseT,ResponseT>> publisher)voidByteArraySplittingTransformer. subscribe(org.reactivestreams.Subscriber<? super AsyncResponseTransformer<ResponseT,ResponseT>> subscriber)voidFileAsyncResponseTransformerPublisher. subscribe(org.reactivestreams.Subscriber<? super AsyncResponseTransformer<T,T>> s)voidSplittingTransformer. subscribe(org.reactivestreams.Subscriber<? super AsyncResponseTransformer<ResponseT,ResponseT>> downstreamSubscriber)Constructors in software.amazon.awssdk.core.internal.async with parameters of type AsyncResponseTransformer Constructor Description ByteArraySplittingTransformer(AsyncResponseTransformer<ResponseT,ResponseBytes<ResponseT>> upstreamResponseTransformer, CompletableFuture<ResponseBytes<ResponseT>> resultFuture) -
Uses of AsyncResponseTransformer in software.amazon.awssdk.core.internal.handler
Methods in software.amazon.awssdk.core.internal.handler with parameters of type AsyncResponseTransformer Modifier and Type Method Description <InputT extends SdkRequest,OutputT extends SdkResponse,ReturnT>
CompletableFuture<ReturnT>BaseAsyncClientHandler. execute(ClientExecutionParams<InputT,OutputT> executionParams, AsyncResponseTransformer<OutputT,ReturnT> asyncResponseTransformer) -
Uses of AsyncResponseTransformer in software.amazon.awssdk.core.internal.http.async
Constructors in software.amazon.awssdk.core.internal.http.async with parameters of type AsyncResponseTransformer Constructor Description AsyncStreamingResponseHandler(AsyncResponseTransformer<OutputT,ReturnT> asyncResponseTransformer)
-