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 of SdkHttpContentPublisher that provides all it's data at once. Useful for non streaming operations that are already marshalled into memory.
  • Constructor Details

    • SimpleHttpContentPublisher

      public SimpleHttpContentPublisher(SdkHttpFullRequest request)
  • Method Details

    • contentLength

      public Optional<Long> contentLength()
      Specified by:
      contentLength in interface SdkHttpContentPublisher
      Returns:
      The content length of the data being produced.
    • subscribe

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