org.apache.camel.component.jms.reply
Class UseMessageIdAsCorrelationIdMessageSentCallback

java.lang.Object
  extended by 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.

Version:

Constructor Summary
UseMessageIdAsCorrelationIdMessageSentCallback(ReplyManager replyManager, String correlationId, long requestTimeout)
           
 
Method Summary
 void sent(javax.jms.Session session, javax.jms.Message message, javax.jms.Destination destination)
          Callback when the message has been sent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UseMessageIdAsCorrelationIdMessageSentCallback

public UseMessageIdAsCorrelationIdMessageSentCallback(ReplyManager replyManager,
                                                      String correlationId,
                                                      long requestTimeout)
Method Detail

sent

public void sent(javax.jms.Session session,
                 javax.jms.Message message,
                 javax.jms.Destination destination)
Description copied from interface: MessageSentCallback
Callback when the message has been sent.

Specified by:
sent in interface MessageSentCallback
Parameters:
session - the session
message - the message
destination - the destination


Apache CAMEL