Class UseMessageIdAsCorrelationIdMessageSentCallback
java.lang.Object
org.apache.camel.component.jms.reply.UseMessageIdAsCorrelationIdMessageSentCallback
- All Implemented Interfaces:
MessageSentCallback
public class UseMessageIdAsCorrelationIdMessageSentCallback
extends Object
implements MessageSentCallback
Callback to be used when using the option useMessageIDAsCorrelationID.
This callback will keep the correlation registration in
ReplyManager
up-to-date with the
JMSMessageID which was assigned and used when the message was sent.-
Constructor Summary
ConstructorDescriptionUseMessageIdAsCorrelationIdMessageSentCallback
(ReplyManager replyManager, String correlationId, long requestTimeout) -
Method Summary
Modifier and TypeMethodDescriptionvoid
sent
(jakarta.jms.Session session, jakarta.jms.Message message, jakarta.jms.Destination destination) Callback when the message has been sent.
-
Constructor Details
-
UseMessageIdAsCorrelationIdMessageSentCallback
public UseMessageIdAsCorrelationIdMessageSentCallback(ReplyManager replyManager, String correlationId, long requestTimeout)
-
-
Method Details
-
sent
public void sent(jakarta.jms.Session session, jakarta.jms.Message message, jakarta.jms.Destination destination) Description copied from interface:MessageSentCallback
Callback when the message has been sent.- Specified by:
sent
in interfaceMessageSentCallback
- Parameters:
session
- the sessionmessage
- the messagedestination
- the destination
-