public interface ReplyManager
extends org.springframework.jms.listener.SessionAwareMessageListener
ReplyManager
is responsible for handling
request-reply over JMS.Modifier and Type | Method and Description |
---|---|
javax.jms.Destination |
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 |
setCorrelationProperty(String correlationProperty)
Sets the JMS message property used for message correlation.
|
void |
setEndpoint(JmsEndpoint endpoint)
Sets the belonging
JmsEndpoint . |
void |
setOnTimeoutExecutorService(ExecutorService executorService)
Sets the thread pool to use for continue routing
Exchange when a timeout was triggered when doing
request/reply over JMS. |
void |
setReplyTo(javax.jms.Destination replyTo)
Sets the reply to queue the manager should listen for replies.
|
void |
setReplyToSelectorHeader(org.apache.camel.Message camelMessage,
javax.jms.Message jmsMessage)
To be used when a reply queue is used with a custom JMS selector is being used.
|
void |
setScheduledExecutorService(ScheduledExecutorService executorService)
Sets the scheduled thread pool 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(JmsEndpoint endpoint)
JmsEndpoint
.void setReplyTo(javax.jms.Destination replyTo)
void setScheduledExecutorService(ScheduledExecutorService executorService)
void setOnTimeoutExecutorService(ExecutorService executorService)
Exchange
when a timeout was triggered when doing
request/reply over JMS.void setCorrelationProperty(String correlationProperty)
javax.jms.Destination getReplyTo()
void setReplyToSelectorHeader(org.apache.camel.Message camelMessage, javax.jms.Message jmsMessage) throws javax.jms.JMSException
javax.jms.JMSException
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 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 routingApache Camel