Class BlockingOutputStreamAsyncRequestBody.Builder

    • Method Detail

      • subscribeTimeout

        public BlockingOutputStreamAsyncRequestBody.Builder subscribeTimeout​(Duration subscribeTimeout)
        Defines how long it should wait for this AsyncRequestBody to be subscribed (to start streaming) before timing out. By default, it's 10 seconds.

        You may want to increase it if the request may not be executed right away.

        Parameters:
        subscribeTimeout - the timeout
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • contentLength

        public BlockingOutputStreamAsyncRequestBody.Builder contentLength​(Long contentLength)
        The content length of the output stream.
        Parameters:
        contentLength - the content length
        Returns:
        Returns a reference to this object so that method calls can be chained together.