public class DelegateQueueManager extends Object implements QueueManager, Lifecycle, MuleContextAware
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
static String |
MULE_QUEUE_OLD_MODE_KEY |
PHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
DelegateQueueManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
QueueSession |
getQueueSession()
Returns a new instance of
QueueSession bounded to this
QueueManager |
void |
initialise()
Method used to perform any initialisation work.
|
static boolean |
isOldModeEnabled() |
void |
setDefaultQueueConfiguration(QueueConfiguration config)
Sets the default
QueueConfiguration for any created Queue for
which a custom configuration hasn't been specified |
void |
setMuleContext(MuleContext context) |
void |
setQueueConfiguration(String queueName,
QueueConfiguration config)
Specifies a
QueueConfiguration for the queue which name matches
queueName |
void |
start() |
void |
stop() |
public static final String MULE_QUEUE_OLD_MODE_KEY
protected final org.apache.commons.logging.Log logger
public QueueSession getQueueSession()
QueueManagerQueueSession bounded to this
QueueManagergetQueueSession in interface QueueManagerpublic void setDefaultQueueConfiguration(QueueConfiguration config)
QueueManagerQueueConfiguration for any created Queue for
which a custom configuration hasn't been specifiedsetDefaultQueueConfiguration in interface QueueManagerconfig - an instance of QueueConfigurationpublic void setQueueConfiguration(String queueName, QueueConfiguration config)
QueueManagerQueueConfiguration for the queue which name matches
queueNamesetQueueConfiguration in interface QueueManagerqueueName - the name of a Queueconfig - an instance of QueueConfigurationpublic void start()
throws MuleException
start in interface StartableMuleExceptionpublic void stop()
throws MuleException
stop in interface StoppableMuleExceptionpublic void dispose()
Disposabledispose in interface Disposablepublic void initialise()
throws InitialisationException
InitialisableInitialisationException 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.initialise in interface InitialisableInitialisationException - if a fatal error occurs causing the Mule instance to shutdownRecoverableException - if an error occurs that can be recovered frompublic void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarepublic static boolean isOldModeEnabled()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.