Interface AsyncPushProducer

    • Method Detail

      • produceResponse

        void produceResponse​(ResponseChannel channel,
                             HttpContext context)
                      throws HttpException,
                             java.io.IOException
        Triggered to signal the ability of the underlying response channel to accept response messages. The data producer can choose to send a final response message immediately inside the call or asynchronously at some later point. The final response can be preceded by a number of intermediate messages.
        Parameters:
        channel - the response channel capable to accepting response messages.
        context - the actual execution context.
        Throws:
        HttpException
        java.io.IOException
      • failed

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