Class TemporaryQueueReplyHandler
- java.lang.Object
-
- org.apache.camel.component.jms.reply.TemporaryQueueReplyHandler
-
- All Implemented Interfaces:
ReplyHandler
- Direct Known Subclasses:
QueueReplyHandler
public class TemporaryQueueReplyHandler extends Object implements ReplyHandler
ReplyHandlerto handle processing replies when using temporary queues.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.camel.AsyncCallbackcallbackprotected StringcorrelationIdprotected org.apache.camel.Exchangeexchangeprotected StringoriginalCorrelationIdprotected ReplyManagerreplyManagerprotected longtimeout
-
Constructor Summary
Constructors Constructor Description TemporaryQueueReplyHandler(ReplyManager replyManager, org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback, String originalCorrelationId, String correlationId, long timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonReply(String correlationId, javax.jms.Message reply, javax.jms.Session session)The reply message was receivedvoidonTimeout(String correlationId)The reply message was not received and a timeout triggered
-
-
-
Field Detail
-
replyManager
protected final ReplyManager replyManager
-
exchange
protected final org.apache.camel.Exchange exchange
-
callback
protected final org.apache.camel.AsyncCallback callback
-
originalCorrelationId
protected final String originalCorrelationId
-
correlationId
protected final String correlationId
-
timeout
protected final long timeout
-
-
Constructor Detail
-
TemporaryQueueReplyHandler
public TemporaryQueueReplyHandler(ReplyManager replyManager, org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback, String originalCorrelationId, String correlationId, long timeout)
-
-
Method Detail
-
onReply
public void onReply(String correlationId, javax.jms.Message reply, javax.jms.Session session)
Description copied from interface:ReplyHandlerThe reply message was received- Specified by:
onReplyin interfaceReplyHandler- Parameters:
correlationId- the correlation idreply- the JMS reply messagesession- the JMS session
-
onTimeout
public void onTimeout(String correlationId)
Description copied from interface:ReplyHandlerThe reply message was not received and a timeout triggered- Specified by:
onTimeoutin interfaceReplyHandler- Parameters:
correlationId- the correlation id
-
-