Interface SubAsyncRequestBody
- All Superinterfaces:
AsyncRequestBody
,AutoCloseable
,CloseableAsyncRequestBody
,org.reactivestreams.Publisher<ByteBuffer>
,SdkAutoCloseable
,SdkPublisher<ByteBuffer>
- All Known Implementing Classes:
NonRetryableSubAsyncRequestBody
,RetryableSubAsyncRequestBody
Represent a sub
AsyncRequestBody
that publishes a portion of the source AsyncRequestBody
-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.awssdk.core.async.AsyncRequestBody
AsyncRequestBody.BodyType
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
close()
void
complete()
Indicate that no moresend(ByteBuffer)
)} calls will be made, and that stream of messages is completed successfully.long
The maximum length of the content this AsyncRequestBody can hold.int
The part number associated with this SubAsyncRequestBodylong
The length of the bytes receivedvoid
send
(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 org.reactivestreams.Publisher
subscribe
Methods inherited from interface software.amazon.awssdk.core.async.SdkPublisher
addTrailingData, buffer, doAfterOnCancel, doAfterOnComplete, doAfterOnError, filter, filter, flatMapIterable, limit, map, subscribe
-
Method Details
-
send
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()Description copied from interface:SdkAutoCloseable
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSdkAutoCloseable
-
partNumber
int partNumber()The part number associated with this SubAsyncRequestBody- Returns:
-