Interface AsyncRequestProducer

    • Method Detail

      • sendRequest

        void sendRequest​(RequestChannel channel,
                         HttpContext context)
                  throws HttpException,
                         java.io.IOException
        Triggered to signal the ability of the underlying request channel to accept a request messages. The data producer can choose to send a request message immediately inside the call or asynchronously at some later point.
        Parameters:
        channel - the request channel capable to accepting a request message.
        context - the actual execution context.
        Throws:
        HttpException
        java.io.IOException
      • isRepeatable

        boolean isRepeatable()
        Determines whether the producer can consistently produce the same content after invocation of ResourceHolder.releaseResources().
      • failed

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