Class ByteBuffersAsyncRequestBody
java.lang.Object
software.amazon.awssdk.core.internal.async.ByteBuffersAsyncRequestBody
- All Implemented Interfaces:
org.reactivestreams.Publisher<ByteBuffer>,AsyncRequestBody,SdkPublisher<ByteBuffer>
An implementation of
AsyncRequestBody for providing data from the supplied ByteBuffer array. This is created
using static methods on AsyncRequestBody- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ByteBuffersAsyncRequestBodyfrom(byte[] bytes) static ByteBuffersAsyncRequestBodystatic ByteBuffersAsyncRequestBodyof(Long length, ByteBuffer... buffers) static ByteBuffersAsyncRequestBodyof(String mimetype, Long length, ByteBuffer... buffers) static ByteBuffersAsyncRequestBodyof(String mimetype, ByteBuffer... buffers) static ByteBuffersAsyncRequestBodyof(ByteBuffer... buffers) voidsubscribe(org.reactivestreams.Subscriber<? super ByteBuffer> s) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.core.async.AsyncRequestBody
split, splitMethods inherited from interface software.amazon.awssdk.core.async.SdkPublisher
addTrailingData, buffer, doAfterOnCancel, doAfterOnComplete, doAfterOnError, filter, filter, flatMapIterable, limit, map, subscribe
-
Method Details
-
contentLength
- Specified by:
contentLengthin interfaceAsyncRequestBody- Returns:
- The content length of the data being produced.
-
contentType
- Specified by:
contentTypein interfaceAsyncRequestBody- Returns:
- The content type of the data being produced.
-
subscribe
- Specified by:
subscribein interfaceorg.reactivestreams.Publisher<ByteBuffer>
-
of
-
of
-
of
-
of
-
from
-
from
-