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
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 org.slf4j.Loggerlogprotected 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, com.rabbitmq.client.AMQP.BasicProperties properties, byte[] reply)The reply message was receivedvoidonTimeout(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:ReplyHandlerThe reply message was received- Specified by:
onReplyin interfaceReplyHandler- Parameters:
correlationId- the correlation idreply- the reply message
-
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
-
-