Interface SubAsyncRequestBody
-
- All Superinterfaces:
AsyncRequestBody,AutoCloseable,CloseableAsyncRequestBody,org.reactivestreams.Publisher<ByteBuffer>,SdkAutoCloseable,SdkPublisher<ByteBuffer>
- All Known Implementing Classes:
NonRetryableSubAsyncRequestBody,RetryableSubAsyncRequestBody
public interface SubAsyncRequestBody extends CloseableAsyncRequestBody
Represent a subAsyncRequestBodythat publishes a portion of the sourceAsyncRequestBody
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface software.amazon.awssdk.core.async.AsyncRequestBody
AsyncRequestBody.BodyType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()voidcomplete()Indicate that no moresend(ByteBuffer))} calls will be made, and that stream of messages is completed successfully.longmaxLength()The maximum length of the content this AsyncRequestBody can hold.intpartNumber()The part number associated with this SubAsyncRequestBodylongreceivedBytesLength()The length of the bytes receivedvoidsend(ByteBuffer byteBuffer)Send a byte buffer.-
Methods inherited from interface software.amazon.awssdk.core.async.AsyncRequestBody
body, contentLength, contentType, split, split, splitCloseable, splitCloseable
-
Methods inherited from interface software.amazon.awssdk.core.async.SdkPublisher
addTrailingData, buffer, doAfterOnCancel, doAfterOnComplete, doAfterOnError, filter, filter, flatMapIterable, limit, map, subscribe
-
-
-
-
Method Detail
-
send
void send(ByteBuffer byteBuffer)
Send a byte buffer.This method must not be invoked concurrently.
-
complete
void complete()
Indicate that no moresend(ByteBuffer))} calls will be made, and that stream of messages is completed successfully.
-
maxLength
long maxLength()
The maximum length of the content this AsyncRequestBody can hold. If the upstream content length is known, this should be the same as receivedBytesLength
-
receivedBytesLength
long receivedBytesLength()
The length of the bytes received
-
close
default void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSdkAutoCloseable
-
partNumber
int partNumber()
The part number associated with this SubAsyncRequestBody- Returns:
-
-