org.mule.util.queue
Class TransactionalQueueManager

java.lang.Object
  extended by org.mule.util.queue.AbstractQueueManager
      extended by 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.


Field Summary
 
Fields inherited from class org.mule.util.queue.AbstractQueueManager
logger
 
Fields inherited from interface org.mule.api.lifecycle.Startable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Stoppable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Constructor Summary
TransactionalQueueManager()
           
 
Method Summary
protected  DefaultQueueStore createQueueStore(String name, QueueConfiguration config)
          Creates a QueueStore
protected  void doDispose()
          Dispose resources allocated by the implementations.
 QueueSession getQueueSession()
          Returns a new instance of QueueSession bounded to this QueueManager
 RecoverableQueueStore getRecoveryQueue(String queueName)
           
 XaTxQueueTransactionJournal getXaTransactionJournal()
           
 void initialise()
          Method used to perform any initialisation work.
 void start()
           
 void stop()
           
 
Methods inherited from class org.mule.util.queue.AbstractQueueManager
clearQueueConfiguration, closeQueueStore, dispose, disposeQueueStore, getMuleContext, getQueue, setDefaultQueueConfiguration, setMuleContext, setQueueConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionalQueueManager

public TransactionalQueueManager()
Method Detail

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 name
config - 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.