Class CrtRequestBodyAdapter

java.lang.Object
software.amazon.awssdk.crtcore.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 Details

    • CrtRequestBodyAdapter

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

    • 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