Interface Producer

    • Method Detail

      • getLastPublishingId

        long getLastPublishingId()
        Get the last publishing ID for a named producer.

        The value can be mapped to a business index to restart publishing where a previous incarnation of the producer left off.

        Returns:
        the last publishing ID for this named producer
      • send

        void send​(Message message,
                  ConfirmationHandler confirmationHandler)
        Publish a message.
        Parameters:
        message - the message
        confirmationHandler - the callback when the message is confirmed or failed
      • close

        void close()
        Close the producer.
        Specified by:
        close in interface AutoCloseable