Uses of Interface
software.amazon.awssdk.core.async.AsyncResponseTransformer
Packages that use AsyncResponseTransformer
Package
Description
-
Uses of AsyncResponseTransformer in software.amazon.awssdk.core.async
Methods in software.amazon.awssdk.core.async that return AsyncResponseTransformerModifier and TypeMethodDescriptionstatic <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> 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> 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 AsyncResponseTransformerModifier and TypeMethodDescriptionAsyncResponseTransformer.SplitResult.Builder.publisher()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 AsyncResponseTransformerModifier and TypeMethodDescriptionstatic <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 AsyncResponseTransformerModifier and TypeMethodDescriptionAsyncResponseTransformer.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 AsyncResponseTransformerModifier and TypeClassDescriptionstatic final classAsyncResponseTransformerListener.NotifyingAsyncResponseTransformer<ResponseT,ResultT> Methods in software.amazon.awssdk.core.async.listener that return AsyncResponseTransformerModifier and TypeMethodDescriptionAsyncResponseTransformerListener.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 AsyncResponseTransformerModifier and TypeMethodDescriptionstatic <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 AsyncResponseTransformerMethods in software.amazon.awssdk.core.client.handler with parameters of type AsyncResponseTransformerModifier and TypeMethodDescription<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.withAsyncResponseTransformer(AsyncResponseTransformer<OutputT, ?> asyncResponseTransformer) -
Uses of AsyncResponseTransformer in software.amazon.awssdk.core.internal.async
Classes in software.amazon.awssdk.core.internal.async that implement AsyncResponseTransformerModifier and TypeClassDescriptionfinal classByteArrayAsyncResponseTransformer<ResponseT>Implementation ofAsyncResponseTransformerthat dumps content into a byte array and supports further conversions into types, like strings.final classFileAsyncResponseTransformer<ResponseT>AsyncResponseTransformerthat writes the data to the specified file.classInputStreamResponseTransformer<ResponseT extends SdkResponse>AAsyncResponseTransformerthat allows performing blocking reads on the response data.final classPublisherAsyncResponseTransformer<ResponseT extends SdkResponse>Transforms aPublisherAsyncResponseTransformerandByteBufferSdkPublisherinto aResponsePublisher.Methods in software.amazon.awssdk.core.internal.async that return types with arguments of type AsyncResponseTransformerModifier and TypeMethodDescriptionDefaultAsyncResponseTransformerSplitResult.DefaultBuilder.publisher()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 AsyncResponseTransformerModifier and TypeMethodDescriptionSplittingTransformer.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 AsyncResponseTransformerModifier and TypeMethodDescriptionDefaultAsyncResponseTransformerSplitResult.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 AsyncResponseTransformerModifierConstructorDescriptionByteArraySplittingTransformer(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 AsyncResponseTransformerModifier and TypeMethodDescription<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 AsyncResponseTransformerModifierConstructorDescriptionAsyncStreamingResponseHandler(AsyncResponseTransformer<OutputT, ReturnT> asyncResponseTransformer)