Class SplittingPublisher
- java.lang.Object
-
- software.amazon.awssdk.core.internal.async.SplittingPublisher
-
- All Implemented Interfaces:
org.reactivestreams.Publisher<CloseableAsyncRequestBody>,SdkPublisher<CloseableAsyncRequestBody>
public class SplittingPublisher extends Object implements SdkPublisher<CloseableAsyncRequestBody>
Splits anAsyncRequestBodyto multiple smallerAsyncRequestBodys, each of which publishes a specific portion of the original data.If content length is known, each
AsyncRequestBodyis sent to the subscriber right after it's initialized. Otherwise, it is sent after the entire content for that chunk is buffered. This is required to get content length.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSplittingPublisher.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SplittingPublisher.Builderbuilder()Returns a newly initialized builder object for aSplittingPublishervoidsubscribe(org.reactivestreams.Subscriber<? super CloseableAsyncRequestBody> downstreamSubscriber)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.core.async.SdkPublisher
addTrailingData, buffer, doAfterOnCancel, doAfterOnComplete, doAfterOnError, filter, filter, flatMapIterable, limit, map, subscribe
-
-
-
-
Method Detail
-
builder
public static SplittingPublisher.Builder builder()
Returns a newly initialized builder object for aSplittingPublisher
-
subscribe
public void subscribe(org.reactivestreams.Subscriber<? super CloseableAsyncRequestBody> downstreamSubscriber)
- Specified by:
subscribein interfaceorg.reactivestreams.Publisher<CloseableAsyncRequestBody>
-
-