Uses of Interface
software.amazon.awssdk.core.async.SdkPublisher
-
-
Uses of SdkPublisher in software.amazon.awssdk.core.async
Subinterfaces of SdkPublisher in software.amazon.awssdk.core.async Modifier and Type Interface Description interfaceAsyncRequestBodyInterface to allow non-blocking streaming of request content.interfaceCloseableAsyncRequestBodyAn extension ofAsyncRequestBodythat is closable.Classes in software.amazon.awssdk.core.async that implement SdkPublisher Modifier and Type Class Description classBlockingInputStreamAsyncRequestBodyAn implementation ofAsyncRequestBodythat allows performing a blocking write of an input stream to a downstream service.classBlockingOutputStreamAsyncRequestBodyAn implementation ofAsyncRequestBodythat allows performing a blocking write of an output stream to a downstream service.classBufferedSplittableAsyncRequestBodyAnAsyncRequestBodydecorator that enables splitting into retryable sub-request bodies.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 SdkPublisher Modifier and Type Method Description static <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>SdkPublisher. filter(Class<U> clzz)Filters published events to just those that are instances of the given class.default SdkPublisher<T>SdkPublisher. filter(Predicate<T> predicate)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>SdkPublisher. map(Function<T,U> mapper)Perform a mapping on the published events.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.default SdkPublisher<AsyncRequestBody>AsyncRequestBody. split(Consumer<AsyncRequestBodySplitConfiguration.Builder> splitConfiguration)Deprecated.useAsyncRequestBody.splitCloseable(Consumer)insteaddefault 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.SdkPublisher<CloseableAsyncRequestBody>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 SdkPublisher Modifier and Type Method Description voidAsyncResponseTransformer. onStream(SdkPublisher<ByteBuffer> publisher)Called when the response stream is ready.AsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT>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 SdkPublisher Constructor Description ResponsePublisher(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 SdkPublisher Modifier and Type Class Description static classAsyncRequestBodyListener.NotifyingAsyncRequestBodystatic classPublisherListener.NotifyingPublisher<T>Methods in software.amazon.awssdk.core.async.listener that return SdkPublisher Modifier and Type Method Description SdkPublisher<AsyncRequestBody>AsyncRequestBodyListener.NotifyingAsyncRequestBody. split(Consumer<AsyncRequestBodySplitConfiguration.Builder> splitConfiguration)SdkPublisher<AsyncRequestBody>AsyncRequestBodyListener.NotifyingAsyncRequestBody. split(AsyncRequestBodySplitConfiguration splitConfiguration)SdkPublisher<CloseableAsyncRequestBody>AsyncRequestBodyListener.NotifyingAsyncRequestBody. splitCloseable(Consumer<AsyncRequestBodySplitConfiguration.Builder> splitConfiguration)SdkPublisher<CloseableAsyncRequestBody>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 SdkPublisher Modifier and Type Method Description voidAsyncResponseTransformerListener.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.async Modifier and Type Interface Description interfaceSubAsyncRequestBodyRepresent a subAsyncRequestBodythat publishes a portion of the sourceAsyncRequestBodyClasses in software.amazon.awssdk.core.internal.async that implement SdkPublisher Modifier and Type Class Description classByteArraySplittingTransformer<ResponseT>A splitting transformer that creates individualByteArrayAsyncResponseTransformerinstances for each part of a multipart download.classByteBuffersAsyncRequestBodyAn implementation ofAsyncRequestBodyfor providing data from the suppliedByteBufferarray.classChecksumCalculatingAsyncRequestBodyWrapper class to wrap an AsyncRequestBody to calculate checksum as it reads data and append Checksum as trailer at the end.classChecksumValidatingPublisherPublisher to update the checksum as it reads the data and finally compares the computed checksum with expected Checksum.classCompressionAsyncRequestBodyWrapper class to wrap an AsyncRequestBody.classEnvelopeWrappedSdkPublisher<T>Publisher implementation that wraps the content of another publisher in an envelope with an optional prefix (or header) and suffix (or footer).classFileAsyncRequestBodyImplementation 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.classInputStreamWithExecutorAsyncRequestBodyAAsyncRequestBodythat allows reading data off of anInputStreamusing a backgroundExecutorService.classNonRetryableSubAsyncRequestBodyASubAsyncRequestBodyimplementation that doesn't support resubscribe/retryclassRetryableSubAsyncRequestBodyASubAsyncRequestBodyimplementation that supports resubscribe/retry once all data has been published to the first subscriberclassSplittingPublisherSplits 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 SdkPublisher Modifier and Type Method Description static 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.SdkPublisher<AsyncResponseTransformer<ResponseT,ResponseT>>DefaultAsyncResponseTransformerSplitResult.DefaultBuilder. publisher()SdkPublisher<AsyncResponseTransformer<ResponseT,ResponseT>>DefaultAsyncResponseTransformerSplitResult. publisher()The individualAsyncResponseTransformerwill be available through the publisher returned by this method.SdkPublisher<AsyncRequestBody>FileAsyncRequestBody. split(AsyncRequestBodySplitConfiguration splitConfiguration)SdkPublisher<AsyncRequestBody>FileAsyncRequestBodySplitHelper. split()SdkPublisher<CloseableAsyncRequestBody>FileAsyncRequestBody. splitCloseable(AsyncRequestBodySplitConfiguration splitConfiguration)Methods in software.amazon.awssdk.core.internal.async with parameters of type SdkPublisher Modifier and Type Method Description voidByteArrayAsyncResponseTransformer. onStream(SdkPublisher<ByteBuffer> publisher)voidFileAsyncResponseTransformer. onStream(SdkPublisher<ByteBuffer> publisher)voidInputStreamResponseTransformer. onStream(SdkPublisher<ByteBuffer> publisher)voidPublisherAsyncResponseTransformer. onStream(SdkPublisher<ByteBuffer> publisher)AsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT>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 SdkPublisher Modifier and Type Class Description classPaginatedItemsPublisher<ResponseT,ItemT>A publisher to request for a stream of paginated items.
-