public abstract class AbstractQueueManager extends Object implements QueueManager, QueueProvider, QueueStoreCacheListener, MuleContextAware, Initialisable, Disposable
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
PHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
AbstractQueueManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearQueueConfiguration(String queueName) |
void |
closeQueueStore(QueueStore queueStore) |
protected abstract QueueStore |
createQueueStore(String name,
QueueConfiguration config)
Creates a QueueStore
|
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
void |
disposeQueueStore(QueueStore queueStore) |
protected abstract void |
doDispose()
Dispose resources allocated by the implementations.
|
protected MuleContext |
getMuleContext() |
QueueStore |
getQueue(String queueName) |
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 newConfig)
Specifies a
QueueConfiguration for the queue which name matches
queueName |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetQueueSessiongetRecoveryQueueinitialisepublic void setDefaultQueueConfiguration(QueueConfiguration config)
QueueConfiguration 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 newConfig)
QueueConfiguration for the queue which name matches
queueNamesetQueueConfiguration in interface QueueManagerqueueName - the name of a QueuenewConfig - an instance of QueueConfigurationpublic void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwareprotected MuleContext getMuleContext()
public final void dispose()
Disposabledispose in interface Disposablepublic void disposeQueueStore(QueueStore queueStore)
disposeQueueStore in interface QueueStoreCacheListenerqueueStore - queue to be disposedpublic void closeQueueStore(QueueStore queueStore)
closeQueueStore in interface QueueStoreCacheListenerqueueStore - queue to be closed.public QueueStore getQueue(String queueName)
getQueue in interface QueueProviderqueueName - queue nameprotected void clearQueueConfiguration(String queueName)
protected abstract QueueStore createQueueStore(String name, QueueConfiguration config)
name - queue nameconfig - configuration for the queueprotected abstract void doDispose()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.