Class AsyncRequestBodyListener.NotifyingAsyncRequestBody
- java.lang.Object
-
- software.amazon.awssdk.core.async.listener.AsyncRequestBodyListener.NotifyingAsyncRequestBody
-
- All Implemented Interfaces:
org.reactivestreams.Publisher<ByteBuffer>,AsyncRequestBody,SdkPublisher<ByteBuffer>
- Enclosing interface:
- AsyncRequestBodyListener
public static final class AsyncRequestBodyListener.NotifyingAsyncRequestBody extends Object implements AsyncRequestBody
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Long>contentLength()StringcontentType()voidsubscribe(org.reactivestreams.Subscriber<? super ByteBuffer> s)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.core.async.AsyncRequestBody
split, split
-
Methods inherited from interface software.amazon.awssdk.core.async.SdkPublisher
addTrailingData, buffer, doAfterOnCancel, doAfterOnComplete, doAfterOnError, filter, filter, flatMapIterable, limit, map, subscribe
-
-
-
-
Method Detail
-
contentLength
public Optional<Long> contentLength()
- Specified by:
contentLengthin interfaceAsyncRequestBody- Returns:
- The content length of the data being produced.
-
contentType
public String contentType()
- Specified by:
contentTypein interfaceAsyncRequestBody- Returns:
- The content type of the data being produced.
-
subscribe
public void subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> s)
- Specified by:
subscribein interfaceorg.reactivestreams.Publisher<ByteBuffer>
-
-