Uses of Interface
software.amazon.awssdk.core.async.SdkPublisher
Packages that use SdkPublisher
Package
Description
-
Uses of SdkPublisher in software.amazon.awssdk.core.async
Subinterfaces of SdkPublisher in software.amazon.awssdk.core.asyncModifier and TypeInterfaceDescriptioninterfaceInterface to allow non-blocking streaming of request content.interfaceAn extension ofAsyncRequestBodythat is closable.Classes in software.amazon.awssdk.core.async that implement SdkPublisherModifier and TypeClassDescriptionfinal classAn implementation ofAsyncRequestBodythat allows performing a blocking write of an input stream to a downstream service.final classAn implementation ofAsyncRequestBodythat allows performing a blocking write of an output stream to a downstream service.final classAnAsyncRequestBodydecorator that enables splitting into retryable sub-request bodies.final classResponsePublisher<ResponseT extends SdkResponse>AnSdkPublisherthat publishes response body content and also contains a reference to theSdkResponsereturned by the service.Methods in software.amazon.awssdk.core.async that return SdkPublisherModifier and TypeMethodDescriptionstatic <T> SdkPublisher<T>SdkPublisher.adapt(org.reactivestreams.Publisher<T> toAdapt) Adapts aPublishertoSdkPublisher.default SdkPublisher<T>SdkPublisher.addTrailingData(Supplier<Iterable<T>> trailingDataSupplier) Creates a new publisher that emits trailing events provided bytrailingDataSupplierin addition to the published events.default SdkPublisher<List<T>>SdkPublisher.buffer(int bufferSize) Buffers the events into lists of the given buffer size.default SdkPublisher<T>SdkPublisher.doAfterOnCancel(Runnable afterOnCancel) Add a callback that will be invoked after this publisher invokesSubscription.cancel().default SdkPublisher<T>SdkPublisher.doAfterOnComplete(Runnable afterOnComplete) Add a callback that will be invoked after this publisher invokesSubscriber.onComplete().default SdkPublisher<T>SdkPublisher.doAfterOnError(Consumer<Throwable> afterOnError) Add a callback that will be invoked after this publisher invokesSubscriber.onError(Throwable).default <U extends T>
SdkPublisher<U>Filters published events to just those that are instances of the given class.default SdkPublisher<T>Filters published events to just those that match the given predicate.default <U> SdkPublisher<U>SdkPublisher.flatMapIterable(Function<T, Iterable<U>> mapper) Performs a mapping on the published events and creates a new publisher that emits the mapped events one by one.static <T> SdkPublisher<T>SdkPublisher.fromIterable(Iterable<T> iterable) Create anSdkPublisherfrom anIterable.default SdkPublisher<T>SdkPublisher.limit(int limit) Limit the number of published events and cancel the subscription after that limit has been reached.default <U> SdkPublisher<U>Perform a mapping on the published events.AsyncResponseTransformer.SplitResult.Builder.publisher()AsyncResponseTransformer.SplitResult.publisher()The individualAsyncResponseTransformerwill be available through the publisher returned by this method.default SdkPublisher<AsyncRequestBody>AsyncRequestBody.split(Consumer<AsyncRequestBodySplitConfiguration.Builder> splitConfiguration) Deprecated.default SdkPublisher<AsyncRequestBody>AsyncRequestBody.split(AsyncRequestBodySplitConfiguration splitConfiguration) Deprecated.default SdkPublisher<CloseableAsyncRequestBody>AsyncRequestBody.splitCloseable(Consumer<AsyncRequestBodySplitConfiguration.Builder> splitConfiguration) This is a convenience method that passes an instance of theAsyncRequestBodySplitConfigurationbuilder, avoiding the need to create one manually viaAsyncRequestBodySplitConfiguration.builder().default SdkPublisher<CloseableAsyncRequestBody>AsyncRequestBody.splitCloseable(AsyncRequestBodySplitConfiguration splitConfiguration) Converts thisAsyncRequestBodyto a publisher ofCloseableAsyncRequestBodys, each of which publishes specific portion of the original data, based on the providedAsyncRequestBodySplitConfiguration.BufferedSplittableAsyncRequestBody.splitCloseable(AsyncRequestBodySplitConfiguration splitConfiguration) Splits this request body into multiple retryable parts based on the provided configuration.Methods in software.amazon.awssdk.core.async with parameters of type SdkPublisherModifier and TypeMethodDescriptionvoidAsyncResponseTransformer.onStream(SdkPublisher<ByteBuffer> publisher) Called when the response stream is ready.AsyncResponseTransformer.SplitResult.Builder.publisher(SdkPublisher<AsyncResponseTransformer<ResponseT, ResponseT>> publisher) Sets the publisher publishing the individualAsyncResponseTransformerConstructors in software.amazon.awssdk.core.async with parameters of type SdkPublisherModifierConstructorDescriptionResponsePublisher(ResponseT response, SdkPublisher<ByteBuffer> publisher) ResponsePublisher(ResponseT response, SdkPublisher<ByteBuffer> publisher, Duration timeout) -
Uses of SdkPublisher in software.amazon.awssdk.core.async.listener
Classes in software.amazon.awssdk.core.async.listener that implement SdkPublisherModifier and TypeClassDescriptionstatic final classstatic final classMethods in software.amazon.awssdk.core.async.listener that return SdkPublisherModifier and TypeMethodDescriptionAsyncRequestBodyListener.NotifyingAsyncRequestBody.split(Consumer<AsyncRequestBodySplitConfiguration.Builder> splitConfiguration) AsyncRequestBodyListener.NotifyingAsyncRequestBody.split(AsyncRequestBodySplitConfiguration splitConfiguration) AsyncRequestBodyListener.NotifyingAsyncRequestBody.splitCloseable(Consumer<AsyncRequestBodySplitConfiguration.Builder> splitConfiguration) AsyncRequestBodyListener.NotifyingAsyncRequestBody.splitCloseable(AsyncRequestBodySplitConfiguration splitConfiguration) static <T> SdkPublisher<T>PublisherListener.wrap(SdkPublisher<T> delegate, PublisherListener<T> listener) Wrap aSdkPublisherwith a new one that will notify aPublisherListenerof important events occurring.Methods in software.amazon.awssdk.core.async.listener with parameters of type SdkPublisherModifier and TypeMethodDescriptionvoidAsyncResponseTransformerListener.NotifyingAsyncResponseTransformer.onStream(SdkPublisher<ByteBuffer> publisher) default voidAsyncResponseTransformerListener.transformerOnStream(SdkPublisher<ByteBuffer> publisher) Invoked beforeAsyncResponseTransformer.onStream(SdkPublisher)static <T> SdkPublisher<T>PublisherListener.wrap(SdkPublisher<T> delegate, PublisherListener<T> listener) Wrap aSdkPublisherwith a new one that will notify aPublisherListenerof important events occurring. -
Uses of SdkPublisher in software.amazon.awssdk.core.internal.async
Subinterfaces of SdkPublisher in software.amazon.awssdk.core.internal.asyncModifier and TypeInterfaceDescriptioninterfaceRepresent a subAsyncRequestBodythat publishes a portion of the sourceAsyncRequestBodyClasses in software.amazon.awssdk.core.internal.async that implement SdkPublisherModifier and TypeClassDescriptionclassByteArraySplittingTransformer<ResponseT>A splitting transformer that creates individualByteArrayAsyncResponseTransformerinstances for each part of a multipart download.final classAn implementation ofAsyncRequestBodyfor providing data from the suppliedByteBufferarray.classWrapper class to wrap an AsyncRequestBody to calculate checksum as it reads data and append Checksum as trailer at the end.final classPublisher to update the checksum as it reads the data and finally compares the computed checksum with expected Checksum.classWrapper class to wrap an AsyncRequestBody.classPublisher implementation that wraps the content of another publisher in an envelope with an optional prefix (or header) and suffix (or footer).final classImplementation ofAsyncRequestBodythat reads data from a file.classFileAsyncResponseTransformerPublisher<T extends SdkResponse>A publisher ofFileAsyncResponseTransformerthat uses the Content-Range header of aSdkResponseto write to the offset defined in the range of the Content-Range.classAAsyncRequestBodythat allows reading data off of anInputStreamusing a backgroundExecutorService.final classASubAsyncRequestBodyimplementation that doesn't support resubscribe/retryfinal classASubAsyncRequestBodyimplementation that supports resubscribe/retry once all data has been published to the first subscriberclassSplits anAsyncRequestBodyto multiple smallerAsyncRequestBodys, each of which publishes a specific portion of the original data.classSplittingTransformer<ResponseT,ResultT> Split aAsyncResponseTransformerinto multiple ones, publishing them as aSdkPublisher.Methods in software.amazon.awssdk.core.internal.async that return SdkPublisherModifier and TypeMethodDescriptionstatic SdkPublisher<ByteBuffer>SdkPublishers.envelopeWrappedPublisher(org.reactivestreams.Publisher<ByteBuffer> publisher, String envelopePrefix, String envelopeSuffix) Constructs anSdkPublisherthat wraps aByteBufferpublisher and inserts additional content that wraps the published content like an envelope.DefaultAsyncResponseTransformerSplitResult.DefaultBuilder.publisher()DefaultAsyncResponseTransformerSplitResult.publisher()The individualAsyncResponseTransformerwill be available through the publisher returned by this method.FileAsyncRequestBody.split(AsyncRequestBodySplitConfiguration splitConfiguration) FileAsyncRequestBodySplitHelper.split()FileAsyncRequestBody.splitCloseable(AsyncRequestBodySplitConfiguration splitConfiguration) Methods in software.amazon.awssdk.core.internal.async with parameters of type SdkPublisherModifier and TypeMethodDescriptionvoidByteArrayAsyncResponseTransformer.onStream(SdkPublisher<ByteBuffer> publisher) voidFileAsyncResponseTransformer.onStream(SdkPublisher<ByteBuffer> publisher) voidInputStreamResponseTransformer.onStream(SdkPublisher<ByteBuffer> publisher) voidPublisherAsyncResponseTransformer.onStream(SdkPublisher<ByteBuffer> publisher) DefaultAsyncResponseTransformerSplitResult.DefaultBuilder.publisher(SdkPublisher<AsyncResponseTransformer<ResponseT, ResponseT>> publisher) -
Uses of SdkPublisher in software.amazon.awssdk.core.pagination.async
Classes in software.amazon.awssdk.core.pagination.async that implement SdkPublisherModifier and TypeClassDescriptionfinal classPaginatedItemsPublisher<ResponseT,ItemT> Deprecated.
AsyncRequestBody.splitCloseable(Consumer)instead