public class MultiConsumerJmsMessageReceiver extends AbstractMessageReceiver
transacted.message.receiver
(it may work with non-transacted sessions as well,
just hasn't been tested and load-tested yet.
In Mule an endpoint corresponds to a single receiver. It's up to the receiver to do multithreaded consumption and
resource allocation, if needed. This class honors the numberOfConcurrentTransactedReceivers strictly
and will create exactly this number of consumers.| Modifier and Type | Class and Description |
|---|---|
protected class |
MultiConsumerJmsMessageReceiver.JmsWorker |
| Modifier and Type | Field and Description |
|---|---|
protected edu.emory.mathcs.backport.java.util.concurrent.BlockingDeque |
consumers |
protected int |
receiversCount |
connected, connecting, connectionStrategy, connector, disposing, endpoint, logger, receiverKey, responseEndpoint, service, stoppedPHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
MultiConsumerJmsMessageReceiver(Connector connector,
Service service,
InboundEndpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doConnect() |
protected void |
doDisconnect() |
protected void |
doDispose() |
protected void |
doStart() |
protected void |
doStop() |
connect, disconnect, dispose, doInitialise, getConnectEventId, getConnectionDescription, getConnector, getEndpoint, getEndpointURI, getListener, getReceiverKey, getService, getWorkManager, handleException, handleUnacceptedFilter, initialise, isConnected, routeMessage, routeMessage, routeMessage, routeMessage, routeMessage, routeMessage, setConnector, setEndpoint, setExceptionDetails, setListener, setReceiverKey, setService, setWorkManager, start, stop, toStringprotected final edu.emory.mathcs.backport.java.util.concurrent.BlockingDeque consumers
protected volatile int receiversCount
public MultiConsumerJmsMessageReceiver(Connector connector, Service service, InboundEndpoint endpoint) throws CreateException
CreateExceptionprotected void doStart()
throws MuleException
doStart in class AbstractMessageReceiverMuleExceptionprotected void doStop()
throws MuleException
doStop in class AbstractMessageReceiverMuleExceptionprotected void doConnect()
throws Exception
doConnect in class AbstractMessageReceiverExceptionprotected void doDisconnect()
throws Exception
doDisconnect in class AbstractMessageReceiverExceptionprotected void doDispose()
doDispose in class AbstractMessageReceiverCopyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.