|
||||||||||
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 org.springframework.jms.listener.AbstractMessageListenerContainer |
listenerContainer
|
protected org.slf4j.Logger |
log
|
protected javax.jms.Destination |
replyTo
|
protected CountDownLatch |
replyToLatch
|
protected long |
replyToTimeout
|
Constructor Summary | |
---|---|
ReplyManagerSupport()
|
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.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.slf4j.Logger log
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 CorrelationMap correlation
Constructor Detail |
---|
public ReplyManagerSupport()
Method Detail |
---|
public void setScheduledExecutorService(ScheduledExecutorService executorService)
ReplyManager
setScheduledExecutorService
in interface ReplyManager
public void setEndpoint(JmsEndpoint endpoint)
ReplyManager
JmsEndpoint
.
setEndpoint
in interface ReplyManager
public void setReplyTo(javax.jms.Destination replyTo)
ReplyManager
setReplyTo
in interface ReplyManager
public javax.jms.Destination getReplyTo()
ReplyManager
getReplyTo
in interface ReplyManager
public void onMessage(javax.jms.Message message)
onMessage
in interface javax.jms.MessageListener
public void processReply(ReplyHolder holder)
ReplyManager
processReply
in interface ReplyManager
holder
- containing needed data to process the reply and continue routingprotected 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.impl.ServiceSupport
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.impl.ServiceSupport
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |