org.mule.util.queue
Class TransactionalQueueManager
java.lang.Object
org.mule.util.queue.AbstractQueueManager
org.mule.util.queue.TransactionalQueueManager
- All Implemented Interfaces:
- MuleContextAware, Disposable, Initialisable, Startable, Stoppable, QueueManager, QueueProvider, QueueStoreCacheListener
public class TransactionalQueueManager
- extends AbstractQueueManager
The Transactional Queue Manager is responsible for creating and Managing
transactional Queues. Queues can also be persistent by setting a persistence
configuration for the queue.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionalQueueManager
public TransactionalQueueManager()
getQueueSession
public QueueSession getQueueSession()
- Returns a new instance of
QueueSession bounded to this
QueueManager
- Returns:
- an instance of
TransactionalQueueSession
createQueueStore
protected DefaultQueueStore createQueueStore(String name,
QueueConfiguration config)
- Description copied from class:
AbstractQueueManager
- Creates a QueueStore
- Specified by:
createQueueStore in class AbstractQueueManager
- Parameters:
name - queue nameconfig - configuration for the queue
- Returns:
- a new QueueStore for the given queue name
doDispose
protected void doDispose()
- Description copied from class:
AbstractQueueManager
- Dispose resources allocated by the implementations.
This method is run after the queues were disposed and removed from the cache.
- Specified by:
doDispose in class AbstractQueueManager
initialise
public void initialise()
throws InitialisationException
- Description copied from interface:
Initialisable
- Method used to perform any initialisation work. If a fatal error occurs during
initialisation an
InitialisationException should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.
- Throws:
InitialisationException - if a fatal error occurs causing the Mule instance to shutdown
RecoverableException - if an error occurs that can be recovered from
getXaTransactionJournal
public XaTxQueueTransactionJournal getXaTransactionJournal()
getRecoveryQueue
public RecoverableQueueStore getRecoveryQueue(String queueName)
- Parameters:
queueName - queue name
- Returns:
- a recovery queue store for the queue with queueName
start
public void start()
throws MuleException
- Throws:
MuleException
stop
public void stop()
throws MuleException
- Throws:
MuleException
Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.