public class DelegateQueueManager extends Object implements QueueManager, Lifecycle, MuleContextAware
Modifier and Type | Field and Description |
---|---|
protected Log |
logger |
static String |
MULE_QUEUE_OLD_MODE_KEY |
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_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 Log logger
public QueueSession getQueueSession()
QueueManager
QueueSession
bounded to this
QueueManager
getQueueSession
in interface QueueManager
public void setDefaultQueueConfiguration(QueueConfiguration config)
QueueManager
QueueConfiguration
for any created Queue
for
which a custom configuration hasn't been specifiedsetDefaultQueueConfiguration
in interface QueueManager
config
- an instance of QueueConfiguration
public void setQueueConfiguration(String queueName, QueueConfiguration config)
QueueManager
QueueConfiguration
for the queue which name matches
queueNamesetQueueConfiguration
in interface QueueManager
queueName
- the name of a Queue
config
- an instance of QueueConfiguration
public void start() throws MuleException
start
in interface Startable
MuleException
public void stop() throws MuleException
stop
in interface Stoppable
MuleException
public void dispose()
Disposable
dispose
in interface Disposable
public void initialise() throws InitialisationException
Initialisable
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.initialise
in interface Initialisable
InitialisationException
- 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 MuleContextAware
public static boolean isOldModeEnabled()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.