public class QueuedAsynchronousProcessingStrategy extends AsynchronousProcessingStrategy implements QueueStatisticsAware
QueueManager
to decouple receipt and processing of messages. The queue is
polled and a WorkManager
is used to schedule processing of the pipeline of message processors in a
single worker thread.ProcessingStrategy.StageNameSource
Modifier and Type | Field and Description |
---|---|
protected Integer |
maxQueueSize |
protected QueueStatistics |
queueStatistics |
protected QueueStore<Serializable> |
queueStore |
protected Integer |
queueTimeout |
synchronousProcessingStrategy
maxBufferSize, maxThreads, minThreads, poolExhaustedAction, threadTTL, threadWaitTimeout
Constructor and Description |
---|
QueuedAsynchronousProcessingStrategy() |
Modifier and Type | Method and Description |
---|---|
protected AsyncInterceptingMessageProcessor |
createAsyncMessageProcessor(StageNameSource nameSource,
MuleContext muleContext) |
Integer |
getMaxQueueSize() |
QueueStatistics |
getQueueStatistics() |
QueueStore<Serializable> |
getQueueStore() |
Integer |
getQueueTimeout() |
protected void |
initQueueStore(MuleContext muleContext) |
void |
setMaxQueueSize(Integer maxQueueSize) |
void |
setQueueStatistics(QueueStatistics queueStatistics) |
void |
setQueueStore(QueueStore<Serializable> queueStore) |
void |
setQueueTimeout(Integer queueTimeout) |
configureProcessors
createThreadingProfile, getMaxBufferSize, getMaxThreads, getMinThreads, getPoolExhaustedAction, getThreadPoolName, getThreadTTL, getThreadWaitTimeout, setMaxBufferSize, setMaxThreads, setMinThreads, setPoolExhaustedAction, setThreadTTL, setThreadWaitTimeout
protected Integer queueTimeout
protected Integer maxQueueSize
protected QueueStore<Serializable> queueStore
protected QueueStatistics queueStatistics
public QueuedAsynchronousProcessingStrategy()
protected AsyncInterceptingMessageProcessor createAsyncMessageProcessor(StageNameSource nameSource, MuleContext muleContext)
createAsyncMessageProcessor
in class AsynchronousProcessingStrategy
protected void initQueueStore(MuleContext muleContext)
public Integer getQueueTimeout()
public void setQueueTimeout(Integer queueTimeout)
public Integer getMaxQueueSize()
public void setMaxQueueSize(Integer maxQueueSize)
public QueueStore<Serializable> getQueueStore()
public void setQueueStore(QueueStore<Serializable> queueStore)
public QueueStatistics getQueueStatistics()
public void setQueueStatistics(QueueStatistics queueStatistics)
setQueueStatistics
in interface QueueStatisticsAware
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.