Class SplittingPublisher
- java.lang.Object
-
- software.amazon.awssdk.core.internal.async.SplittingPublisher
-
- All Implemented Interfaces:
org.reactivestreams.Publisher<AsyncRequestBody>
,SdkPublisher<AsyncRequestBody>
public class SplittingPublisher extends Object implements SdkPublisher<AsyncRequestBody>
Splits anAsyncRequestBody
to multiple smallerAsyncRequestBody
s, each of which publishes a specific portion of the original data.If content length is known, each
AsyncRequestBody
is 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.
-
-
Constructor Summary
Constructors Constructor Description SplittingPublisher(AsyncRequestBody asyncRequestBody, AsyncRequestBodySplitConfiguration splitConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
subscribe(org.reactivestreams.Subscriber<? super AsyncRequestBody> 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
-
-
-
-
Constructor Detail
-
SplittingPublisher
public SplittingPublisher(AsyncRequestBody asyncRequestBody, AsyncRequestBodySplitConfiguration splitConfiguration)
-
-
Method Detail
-
subscribe
public void subscribe(org.reactivestreams.Subscriber<? super AsyncRequestBody> downstreamSubscriber)
- Specified by:
subscribe
in interfaceorg.reactivestreams.Publisher<AsyncRequestBody>
-
-