Class TemporaryQueueReplyHandler
- java.lang.Object
-
- org.apache.camel.component.rabbitmq.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 org.slf4j.Logger
log
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, com.rabbitmq.client.AMQP.BasicProperties properties, byte[] reply)
The reply message was receivedvoid
onTimeout(String correlationId)
The reply message was not received and a timeout triggered
-
-
-
Field Detail
-
log
protected final org.slf4j.Logger log
-
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, com.rabbitmq.client.AMQP.BasicProperties properties, byte[] reply)
Description copied from interface:ReplyHandler
The reply message was received- Specified by:
onReply
in interfaceReplyHandler
- Parameters:
correlationId
- the correlation idreply
- the reply message
-
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
-
-