Interface ReliableTransmitter

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void transmit​(List<Message> messages, boolean persistent)
      Transmits a list of messages to the MOM in a reliable way: if persistent is set to true the messages have been persisted when the method returns and therefore can be safely acknowledged.
      void transmit​(Message message, String messageId)
      Transmits a message to the MOM in a reliable way: if the message is persistent it has been persisted when the method returns and therefore can be safely acknowledged.
    • Method Detail

      • transmit

        void transmit​(Message message,
                      String messageId)
        Transmits a message to the MOM in a reliable way: if the message is persistent it has been persisted when the method returns and therefore can be safely acknowledged. The message ID is used to avoid duplicates if a server crash happens right after transmitting the message and before it has been acknowledged. It can be null if such duplicates are tolerated.
        Parameters:
        message - the message to transmit
        messageId - the unique ID of the transmitted message
      • transmit

        void transmit​(List<Message> messages,
                      boolean persistent)
        Transmits a list of messages to the MOM in a reliable way: if persistent is set to true the messages have been persisted when the method returns and therefore can be safely acknowledged. Be careful, the use of this transmit method does not allow to verify the duplication of messages.
        Parameters:
        messages - the messages to transmit