public class InOutProducer extends SjmsProducer
| Modifier and Type | Class and Description |
|---|---|
protected class |
InOutProducer.MessageConsumerResourcesFactory
A pool of
MessageConsumerResources objects that are the reply
consumers. |
SjmsProducer.MessageProducerResourcesFactory| Constructor and Description |
|---|
InOutProducer(SjmsEndpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
MessageProducerResources |
doCreateProducerModel() |
protected void |
doStart() |
protected void |
doStop() |
org.apache.commons.pool.impl.GenericObjectPool<MessageConsumerResources> |
getConsumers() |
void |
sendMessage(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback,
MessageProducerResources producer)
TODO time out is actually double as it waits for the producer and then
waits for the response.
|
void |
setConsumers(org.apache.commons.pool.impl.GenericObjectPool<MessageConsumerResources> consumers) |
getAcknowledgeMode, getCommitStrategy, getConnectionResource, getConsumerCount, getDestinationName, getEndpoint, getExecutor, getNamedReplyTo, getProducerCount, getProducers, getReplyTo, getResponseTimeOut, getTtl, isEndpointTransacted, isPersistent, isSynchronous, isTopic, process, setProducerscreateExchange, createExchange, createExchange, isSingleton, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic InOutProducer(SjmsEndpoint endpoint)
protected void doStart()
throws Exception
doStart in class SjmsProducerExceptionprotected void doStop()
throws Exception
doStop in class SjmsProducerExceptionpublic MessageProducerResources doCreateProducerModel() throws Exception
doCreateProducerModel in class SjmsProducerExceptionpublic void sendMessage(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback,
MessageProducerResources producer)
throws Exception
sendMessage in class SjmsProducerExceptionpublic void setConsumers(org.apache.commons.pool.impl.GenericObjectPool<MessageConsumerResources> consumers)
public org.apache.commons.pool.impl.GenericObjectPool<MessageConsumerResources> getConsumers()
Apache Camel