Class BlockingOutputStreamAsyncRequestBody

    • Method Detail

      • outputStream

        public CancellableOutputStream outputStream()
        Return an output stream to which blocking writes can be made to the downstream service.

        This method will block the calling thread until the SDK is connected to the service. This means that this request body should usually be passed to the SDK before this method is called.

        You can invoke CancellableOutputStream.cancel() to cancel any blocked write calls to the downstream service (and mark the stream as failed).

      • subscribe

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