Class NoRetriesAsyncRequestBody

  • All Implemented Interfaces:
    org.reactivestreams.Publisher<ByteBuffer>, software.amazon.awssdk.core.async.AsyncRequestBody, software.amazon.awssdk.core.async.SdkPublisher<ByteBuffer>

    public class NoRetriesAsyncRequestBody
    extends Object
    implements software.amazon.awssdk.core.async.AsyncRequestBody
    AsyncRequestBody which blocks re-subscription. This is useful when retrying is problematic, such as when uploading parts of a multipart upload.
    • Constructor Detail

      • NoRetriesAsyncRequestBody

        public NoRetriesAsyncRequestBody​(software.amazon.awssdk.core.async.AsyncRequestBody wrappedAsyncRequestBody)
    • Method Detail

      • contentLength

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

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