Class SimpleHttpContentPublisher

  • All Implemented Interfaces:
    org.reactivestreams.Publisher<ByteBuffer>, software.amazon.awssdk.http.async.SdkHttpContentPublisher

    public final class SimpleHttpContentPublisher
    extends Object
    implements software.amazon.awssdk.http.async.SdkHttpContentPublisher
    Implementation of SdkHttpContentPublisher that provides all it's data at once. Useful for non streaming operations that are already marshalled into memory.
    • Constructor Detail

      • SimpleHttpContentPublisher

        public SimpleHttpContentPublisher​(software.amazon.awssdk.http.SdkHttpFullRequest request)
    • Method Detail

      • contentLength

        public Optional<Long> contentLength()
        Specified by:
        contentLength in interface software.amazon.awssdk.http.async.SdkHttpContentPublisher
      • subscribe

        public void subscribe​(org.reactivestreams.Subscriber<? super ByteBuffer> s)
        Specified by:
        subscribe in interface org.reactivestreams.Publisher<ByteBuffer>