public interface ReplyManager
ReplyManager
is responsible for handling request-reply
over RabbitMQ.Modifier and Type | Method and Description |
---|---|
void |
cancelCorrelationId(String correlationId)
Unregister a correlationId when you no longer need a reply
|
String |
getReplyTo()
Gets the reply to queue being used
|
void |
processReply(ReplyHolder holder)
Process the reply
|
String |
registerReply(ReplyManager replyManager,
org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback,
String originalCorrelationId,
String correlationId,
long requestTimeout)
Register a reply
|
void |
setEndpoint(RabbitMQEndpoint endpoint)
Sets the belonging
RabbitMQEndpoint |
void |
setReplyTo(String replyTo)
Sets the reply to queue the manager should listen for replies.
|
void |
setScheduledExecutorService(ScheduledExecutorService executorService)
Sets the scheduled to use when checking for timeouts (no reply received within a given time period)
|
void |
updateCorrelationId(String correlationId,
String newCorrelationId,
long requestTimeout)
Updates the correlation id to the new correlation id.
|
void setEndpoint(RabbitMQEndpoint endpoint)
RabbitMQEndpoint
void setReplyTo(String replyTo)
String getReplyTo()
String registerReply(ReplyManager replyManager, org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback, String originalCorrelationId, String correlationId, long requestTimeout)
replyManager
- the reply manager being usedexchange
- the exchangecallback
- the callbackoriginalCorrelationId
- an optional original correlation idcorrelationId
- the correlation id to expect being usedrequestTimeout
- the timeoutvoid setScheduledExecutorService(ScheduledExecutorService executorService)
void updateCorrelationId(String correlationId, String newCorrelationId, long requestTimeout)
correlationId
- the provisional correlation idnewCorrelationId
- the real correlation idrequestTimeout
- the timeoutvoid processReply(ReplyHolder holder)
holder
- containing needed data to process the reply and continue routingvoid cancelCorrelationId(String correlationId)
Apache Camel