public abstract class AbstractQueueManager extends Object implements QueueManager, QueueProvider, QueueStoreCacheListener, MuleContextAware, org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.api.lifecycle.Disposable
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| 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() |
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, waitgetQueueSessiongetRecoveryQueuepublic 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 MuleContextAwarecontext - the Mule node.protected MuleContext getMuleContext()
public final void dispose()
dispose in interface org.mule.runtime.api.lifecycle.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–2017 MuleSoft, Inc.. All rights reserved.