|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.support.ServiceSupport
org.apache.camel.component.jms.reply.ReplyManagerSupport
public abstract class ReplyManagerSupport
Base class for ReplyManager implementations.
| Field Summary | |
|---|---|
protected org.apache.camel.CamelContext |
camelContext
|
protected CorrelationTimeoutMap |
correlation
|
protected JmsEndpoint |
endpoint
|
protected ScheduledExecutorService |
executorService
|
protected org.springframework.jms.listener.AbstractMessageListenerContainer |
listenerContainer
|
protected org.slf4j.Logger |
log
|
protected javax.jms.Destination |
replyTo
|
protected CountDownLatch |
replyToLatch
|
protected long |
replyToTimeout
|
| Fields inherited from class org.apache.camel.support.ServiceSupport |
|---|
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
| Constructor Summary | |
|---|---|
ReplyManagerSupport(org.apache.camel.CamelContext camelContext)
|
|
| Method Summary | |
|---|---|
protected abstract org.springframework.jms.listener.AbstractMessageListenerContainer |
createListenerContainer()
|
protected void |
doStart()
|
protected void |
doStop()
|
javax.jms.Destination |
getReplyTo()
Gets the reply to queue being used |
protected abstract void |
handleReplyMessage(String correlationID,
javax.jms.Message message)
|
void |
onMessage(javax.jms.Message message)
|
void |
processReply(ReplyHolder holder)
Process the reply |
void |
setEndpoint(JmsEndpoint endpoint)
Sets the belonging JmsEndpoint. |
void |
setReplyTo(javax.jms.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,
javax.jms.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.support.ServiceSupport |
|---|
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, 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.slf4j.Logger log
protected final org.apache.camel.CamelContext camelContext
protected ScheduledExecutorService executorService
protected JmsEndpoint endpoint
protected javax.jms.Destination replyTo
protected org.springframework.jms.listener.AbstractMessageListenerContainer listenerContainer
protected final CountDownLatch replyToLatch
protected final long replyToTimeout
protected CorrelationTimeoutMap correlation
| Constructor Detail |
|---|
public ReplyManagerSupport(org.apache.camel.CamelContext camelContext)
| Method Detail |
|---|
public void setScheduledExecutorService(ScheduledExecutorService executorService)
ReplyManager
setScheduledExecutorService in interface ReplyManagerpublic void setEndpoint(JmsEndpoint endpoint)
ReplyManagerJmsEndpoint.
setEndpoint in interface ReplyManagerpublic void setReplyTo(javax.jms.Destination replyTo)
ReplyManager
setReplyTo in interface ReplyManagerpublic javax.jms.Destination getReplyTo()
ReplyManager
getReplyTo in interface ReplyManagerpublic void onMessage(javax.jms.Message message)
onMessage in interface javax.jms.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,
javax.jms.Message message)
protected abstract org.springframework.jms.listener.AbstractMessageListenerContainer createListenerContainer()
throws Exception
Exception
protected ReplyHandler waitForProvisionCorrelationToBeUpdated(String correlationID,
javax.jms.Message message)
protected void doStart()
throws Exception
doStart in class org.apache.camel.support.ServiceSupportException
protected void doStop()
throws Exception
doStop in class org.apache.camel.support.ServiceSupportException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||