Interface BatchConsumer

    • Method Detail

      • addToBatch

        void addToBatch​(String topic,
                        JsonValue event,
                        StringBuilder payload)
                 throws BatchException
        Adds an audit event to a batch payload.
        Parameters:
        topic - event topic
        event - event JSON payload
        payload - batch payload
        Throws:
        BatchException - indicates failure to add-to-batch
      • publishBatch

        Promise<Void,​BatchException> publishBatch​(String payload)
        Publishes the batch payload.
        Parameters:
        payload - batch payload
        Returns:
        a simple promise encapsulating any potential batch exception