public class SplittingPublisher extends Object implements SdkPublisher<AsyncRequestBody>
AsyncRequestBody to multiple smaller AsyncRequestBodys, 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 and Description |
|---|
SplittingPublisher(AsyncRequestBody asyncRequestBody,
AsyncRequestBodySplitConfiguration splitConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
void |
subscribe(org.reactivestreams.Subscriber<? super AsyncRequestBody> downstreamSubscriber) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadapt, addTrailingData, buffer, doAfterOnCancel, doAfterOnComplete, doAfterOnError, filter, filter, flatMapIterable, limit, map, subscribepublic SplittingPublisher(AsyncRequestBody asyncRequestBody, AsyncRequestBodySplitConfiguration splitConfiguration)
public void subscribe(org.reactivestreams.Subscriber<? super AsyncRequestBody> downstreamSubscriber)
subscribe in interface org.reactivestreams.Publisher<AsyncRequestBody>Copyright © 2023. All rights reserved.