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
ReplyHandler
to handle processing replies when using temporary queues.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.camel.AsyncCallback
callback
protected String
correlationId
protected org.apache.camel.Exchange
exchange
protected String
originalCorrelationId
protected ReplyManager
replyManager
protected long
timeout
-
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 void
onReply(String correlationId, javax.jms.Message reply, javax.jms.Session session)
The reply message was receivedvoid
onTimeout(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:ReplyHandler
The reply message was received- Specified by:
onReply
in interfaceReplyHandler
- Parameters:
correlationId
- the correlation idreply
- the JMS reply messagesession
- the JMS session
-
onTimeout
public void onTimeout(String correlationId)
Description copied from interface:ReplyHandler
The reply message was not received and a timeout triggered- Specified by:
onTimeout
in interfaceReplyHandler
- Parameters:
correlationId
- the correlation id
-
-