Class CrtRequestBodyAdapter

  • All Implemented Interfaces:
    software.amazon.awssdk.crt.http.HttpRequestBodyStream

    @SdkProtectedApi
    public final class CrtRequestBodyAdapter
    extends Object
    implements software.amazon.awssdk.crt.http.HttpRequestBodyStream
    This class adapts a Publisher of ByteBuffer to the CRT HttpRequestBodyStream.
    • Constructor Detail

      • CrtRequestBodyAdapter

        public CrtRequestBodyAdapter​(org.reactivestreams.Publisher<ByteBuffer> requestPublisher,
                                     long contentLength)
    • Method Detail

      • sendRequestBody

        public boolean sendRequestBody​(ByteBuffer bodyBytesOut)
        Specified by:
        sendRequestBody in interface software.amazon.awssdk.crt.http.HttpRequestBodyStream
      • resetPosition

        public boolean resetPosition()
        Specified by:
        resetPosition in interface software.amazon.awssdk.crt.http.HttpRequestBodyStream
      • getLength

        public long getLength()
        Specified by:
        getLength in interface software.amazon.awssdk.crt.http.HttpRequestBodyStream