Class TemporaryQueueReplyHandler
java.lang.Object
org.apache.camel.component.rabbitmq.reply.TemporaryQueueReplyHandler
- All Implemented Interfaces:
ReplyHandler
- Direct Known Subclasses:
QueueReplyHandler
ReplyHandler
to handle processing replies when using temporary queues.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.camel.AsyncCallback
protected final String
protected final org.apache.camel.Exchange
protected final org.slf4j.Logger
protected final String
protected final ReplyManager
protected final long
-
Constructor Summary
ConstructorsConstructorDescriptionTemporaryQueueReplyHandler
(ReplyManager replyManager, org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback, String originalCorrelationId, String correlationId, long timeout) -
Method Summary
-
Field Details
-
log
protected final org.slf4j.Logger log -
replyManager
-
exchange
protected final org.apache.camel.Exchange exchange -
callback
protected final org.apache.camel.AsyncCallback callback -
originalCorrelationId
-
correlationId
-
timeout
protected final long timeout
-
-
Constructor Details
-
TemporaryQueueReplyHandler
public TemporaryQueueReplyHandler(ReplyManager replyManager, org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback, String originalCorrelationId, String correlationId, long timeout)
-
-
Method Details
-
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
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
-