org.mule.util.queue
Interface QueueManager

All Superinterfaces:
Startable, Stoppable
All Known Implementing Classes:
TransactionalQueueManager

public interface QueueManager
extends Startable, Stoppable

A Queue manager is responsible for managing one or more Queue resources and providing common support for transactions and persistence.


Field Summary
 
Fields inherited from interface org.mule.api.lifecycle.Startable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Stoppable
PHASE_NAME
 
Method Summary
 QueueSession getQueueSession()
          Returns a new instance of QueueSession bounded to this QueueManager
 void setDefaultQueueConfiguration(QueueConfiguration config)
          Sets the default QueueConfiguration for any created Queue for which a custom configuration hasn't been specified
 void setQueueConfiguration(String queueName, QueueConfiguration config)
          Specifies a QueueConfiguration for the queue which name matches queueName
 
Methods inherited from interface org.mule.api.lifecycle.Startable
start
 
Methods inherited from interface org.mule.api.lifecycle.Stoppable
stop
 

Method Detail

getQueueSession

QueueSession getQueueSession()
Returns a new instance of QueueSession bounded to this QueueManager

Returns:

setDefaultQueueConfiguration

void setDefaultQueueConfiguration(QueueConfiguration config)
Sets the default QueueConfiguration for any created Queue for which a custom configuration hasn't been specified

Parameters:
config - an instance of QueueConfiguration

setQueueConfiguration

void setQueueConfiguration(String queueName,
                           QueueConfiguration config)
Specifies a QueueConfiguration for the queue which name matches queueName

Parameters:
queueName - the name of a Queue
config - an instance of QueueConfiguration


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.