Package org.objectweb.joram.mom.dest
Interface ReliableTransmitter
-
- All Known Implementing Classes:
AcquisitionModule
public interface ReliableTransmitterTheReliableTransmitteris used by anAcquisitionHandleror anAcquisitionDaemonto transmit acquired messages to the MOM.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidtransmit(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.voidtransmit(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 benullif such duplicates are tolerated.- Parameters:
message- the message to transmitmessageId- 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
-
-