org.mule.providers.jms
Class MultiConsumerJmsMessageReceiver
java.lang.Object
org.mule.providers.AbstractMessageReceiver
org.mule.providers.jms.MultiConsumerJmsMessageReceiver
- All Implemented Interfaces:
- Disposable, Lifecycle, Startable, Stoppable, UMOConnectable, UMOMessageReceiver
public class MultiConsumerJmsMessageReceiver
- extends AbstractMessageReceiver
This is an experimental rework of the 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.
Methods inherited from class org.mule.providers.AbstractMessageReceiver |
applyResponseTransformer, connect, disconnect, dispose, getComponent, getConnectEventId, getConnectionDescription, getConnector, getEndpoint, getEndpointURI, getListener, getReceiverKey, getWorkManager, handleException, handleUnacceptedFilter, isConnected, routeMessage, routeMessage, routeMessage, routeMessage, routeMessage, routeMessage, setComponent, setConnector, setEndpoint, setExceptionDetails, setListener, setReceiverKey, setWorkManager, start, stop, toString |
consumers
protected final BlockingDeque consumers
receiversCount
protected volatile int receiversCount
MultiConsumerJmsMessageReceiver
public MultiConsumerJmsMessageReceiver(UMOConnector connector,
UMOComponent component,
UMOEndpoint endpoint)
throws InitialisationException
- Throws:
InitialisationException
doStart
protected void doStart()
throws UMOException
- Specified by:
doStart
in class AbstractMessageReceiver
- Throws:
UMOException
doStop
protected void doStop()
throws UMOException
- Specified by:
doStop
in class AbstractMessageReceiver
- Throws:
UMOException
doConnect
protected void doConnect()
throws Exception
- Specified by:
doConnect
in class AbstractMessageReceiver
- Throws:
Exception
doDisconnect
protected void doDisconnect()
throws Exception
- Specified by:
doDisconnect
in class AbstractMessageReceiver
- Throws:
Exception
doDispose
protected void doDispose()
- Specified by:
doDispose
in class AbstractMessageReceiver
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.