org.objectweb.joram.mom.dest
Interface ReliableTransmitter

All Known Implementing Classes:
AcquisitionModule

public interface ReliableTransmitter

The ReliableTransmitter is used by an AcquisitionHandler or an AcquisitionDaemon to transmit acquired messages to the MOM.


Method Summary
 void transmit(java.util.List messages, java.lang.String messagesId)
          Transmits a list of messages to the MOM in a reliable way: messages have been persisted when the method returns and therefore can be safely acknowledged.
 void transmit(Message message, java.lang.String messageId)
          Transmits a message to the MOM in a reliable way: message has been persisted when the method returns and therefore can be safely acknowledged.
 

Method Detail

transmit

void transmit(Message message,
              java.lang.String messageId)
Transmits a message to the MOM in a reliable way: message 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(java.util.List messages,
              java.lang.String messagesId)
Transmits a list of messages to the MOM in a reliable way: messages have been persisted when the method returns and therefore can be safely acknowledged. The ID is used to avoid duplicates if a server crash happens right after transmitting the messages and before they have been acknowledged. It can be null if such duplicates are tolerated.

Parameters:
messages - the messages to transmit
messagesId - a unique ID for the list of transmitted messages.


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.