Interface AsyncEntityConsumer<T>

    • Method Detail

      • streamStart

        void streamStart​(EntityDetails entityDetails,
                         FutureCallback<T> resultCallback)
                  throws HttpException,
                         java.io.IOException
        Signals beginning of an incoming request entity stream.
        Parameters:
        entityDetails - the details of the incoming message entity.
        resultCallback - the result callback.
        Throws:
        HttpException
        java.io.IOException
      • failed

        void failed​(java.lang.Exception cause)
        Triggered to signal a failure in data processing.
        Parameters:
        cause - the cause of the failure.
      • getContent

        T getContent()
        Returns the result of entity processing when it becomes available or null if the entity is still being received.
        Returns:
        the response processing result.