Class SimpleHttpContentPublisher
- java.lang.Object
-
- software.amazon.awssdk.core.internal.http.async.SimpleHttpContentPublisher
-
- All Implemented Interfaces:
org.reactivestreams.Publisher<ByteBuffer>
,SdkHttpContentPublisher
public final class SimpleHttpContentPublisher extends Object implements SdkHttpContentPublisher
Implementation ofSdkHttpContentPublisher
that provides all it's data at once. Useful for non streaming operations that are already marshalled into memory.
-
-
Constructor Summary
Constructors Constructor Description SimpleHttpContentPublisher(SdkHttpFullRequest request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Long>
contentLength()
void
subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> s)
-
-
-
Constructor Detail
-
SimpleHttpContentPublisher
public SimpleHttpContentPublisher(SdkHttpFullRequest request)
-
-
Method Detail
-
contentLength
public Optional<Long> contentLength()
- Specified by:
contentLength
in interfaceSdkHttpContentPublisher
-
subscribe
public void subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> s)
- Specified by:
subscribe
in interfaceorg.reactivestreams.Publisher<ByteBuffer>
-
-