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 an 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.