|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReplyManager
The ReplyManager is responsible for handling request-reply
over JMS.
| Method Summary | |
|---|---|
Destination |
getReplyTo()
Gets the reply to queue being used |
void |
processReply(ReplyHolder holder)
Process the reply |
String |
registerReply(ReplyManager replyManager,
Exchange exchange,
AsyncCallback callback,
String originalCorrelationId,
String correlationId,
long requestTimeout)
Register a reply |
void |
setEndpoint(JmsEndpoint endpoint)
Sets the belonging JmsEndpoint. |
void |
setReplyTo(Destination replyTo)
Sets the reply to queue the manager should listen for replies. |
void |
setReplyToSelectorHeader(Message camelMessage,
Message jmsMessage)
To be used when a persistent reply queue is used with a custom JMS selector is being used. |
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. |
| Methods inherited from interface javax.jms.MessageListener |
|---|
onMessage |
| Method Detail |
|---|
void setEndpoint(JmsEndpoint endpoint)
JmsEndpoint.
void setReplyTo(Destination replyTo)
void setScheduledExecutorService(ScheduledExecutorService executorService)
Destination getReplyTo()
void setReplyToSelectorHeader(Message camelMessage,
Message jmsMessage)
throws JMSException
JMSException
String registerReply(ReplyManager replyManager,
Exchange exchange,
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 - an optional timeout
void updateCorrelationId(String correlationId,
String newCorrelationId,
long requestTimeout)
correlationId - the provisional correlation idnewCorrelationId - the real correlation idrequestTimeout - an optional timeoutvoid processReply(ReplyHolder holder)
holder - containing needed data to process the reply and continue routing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||