|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.ServiceSupport
org.apache.camel.component.jms.reply.ReplyManagerSupport
public abstract class ReplyManagerSupport
Base class for ReplyManager implementations.
| Field Summary | |
|---|---|
protected CorrelationMap |
correlation
|
protected JmsEndpoint |
endpoint
|
protected ScheduledExecutorService |
executorService
|
protected AbstractMessageListenerContainer |
listenerContainer
|
protected org.apache.commons.logging.Log |
log
|
protected Destination |
replyTo
|
protected long |
replyToResolverTimeout
|
| Constructor Summary | |
|---|---|
ReplyManagerSupport()
|
|
| Method Summary | |
|---|---|
protected abstract AbstractMessageListenerContainer |
createListenerContainer()
|
protected void |
doStart()
|
protected void |
doStop()
|
Destination |
getReplyTo()
Gets the reply to queue being used |
protected abstract void |
handleReplyMessage(String correlationID,
Message message)
|
void |
onMessage(Message message)
|
void |
processReply(ReplyHolder holder)
Process the 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 |
setScheduledExecutorService(ScheduledExecutorService executorService)
Sets the scheduled to use when checking for timeouts (no reply received within a given time period) |
protected ReplyHandler |
waitForProvisionCorrelationToBeUpdated(String correlationID,
Message message)
IMPORTANT: This logic is only being used due to high performance in-memory only testing using InOut over JMS. |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
|---|
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.camel.component.jms.reply.ReplyManager |
|---|
registerReply, setReplyToSelectorHeader, updateCorrelationId |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log log
protected ScheduledExecutorService executorService
protected JmsEndpoint endpoint
protected Destination replyTo
protected AbstractMessageListenerContainer listenerContainer
protected long replyToResolverTimeout
protected CorrelationMap correlation
| Constructor Detail |
|---|
public ReplyManagerSupport()
| Method Detail |
|---|
public void setScheduledExecutorService(ScheduledExecutorService executorService)
ReplyManager
setScheduledExecutorService in interface ReplyManagerpublic void setEndpoint(JmsEndpoint endpoint)
ReplyManagerJmsEndpoint.
setEndpoint in interface ReplyManagerpublic void setReplyTo(Destination replyTo)
ReplyManager
setReplyTo in interface ReplyManagerpublic Destination getReplyTo()
ReplyManager
getReplyTo in interface ReplyManagerpublic void onMessage(Message message)
onMessage in interface MessageListenerpublic void processReply(ReplyHolder holder)
ReplyManager
processReply in interface ReplyManagerholder - containing needed data to process the reply and continue routing
protected abstract void handleReplyMessage(String correlationID,
Message message)
protected abstract AbstractMessageListenerContainer createListenerContainer()
throws Exception
Exception
protected ReplyHandler waitForProvisionCorrelationToBeUpdated(String correlationID,
Message message)
protected void doStart()
throws Exception
doStart in class ServiceSupportException
protected void doStop()
throws Exception
doStop in class ServiceSupportException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||