Class SplittingPublisher.Builder
java.lang.Object
software.amazon.awssdk.core.internal.async.SplittingPublisher.Builder
- Enclosing class:
- SplittingPublisher
-
Method Summary
Modifier and TypeMethodDescriptionasyncRequestBody(AsyncRequestBody asyncRequestBody) Sets the AsyncRequestBody to be split.bufferBeforeSend(boolean bufferBeforeSend) Sets whether to enable full buffering before sending parts downstream.build()Builds aSplittingPublisherobject based on the values held by this builder.retryableSubAsyncRequestBodyEnabled(Boolean retryableSubAsyncRequestBodyEnabled) Sets whether to enable retryable sub async request bodies.splitConfiguration(AsyncRequestBodySplitConfiguration splitConfiguration) Sets the split configuration.
-
Method Details
-
asyncRequestBody
Sets the AsyncRequestBody to be split. -
splitConfiguration
public SplittingPublisher.Builder splitConfiguration(AsyncRequestBodySplitConfiguration splitConfiguration) Sets the split configuration. -
retryableSubAsyncRequestBodyEnabled
public SplittingPublisher.Builder retryableSubAsyncRequestBodyEnabled(Boolean retryableSubAsyncRequestBodyEnabled) Sets whether to enable retryable sub async request bodies. -
bufferBeforeSend
Sets whether to enable full buffering before sending parts downstream. When enabled, parts are only sent to the downstream subscriber after all data for that part has been received and complete() has been called.This does not increase the maximum memory footprint. Buffered data remains bounded by
bufferSizeInBytesin the split configuration. -
build
Builds aSplittingPublisherobject based on the values held by this builder.
-