public class AsyncInterceptingMessageProcessor extends AbstractInterceptingMessageProcessor implements Startable, Stoppable, MessagingExceptionHandlerAware
MuleEvent's asynchronously using a MuleWorkManager to
schedule asynchronous processing of the next MessageProcessor. The next
MessageProcessor is therefore be executed in a different thread regardless
of the exchange-pattern configured on the inbound endpoint. If a transaction is
present then an exception is thrown.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
doThreading |
static String |
SYNCHRONOUS_EVENT_ERROR_MESSAGE |
protected long |
threadTimeout |
protected WorkManager |
workManager |
protected WorkManagerSource |
workManagerSource |
logger, muleContext, next, notificationHandlerPHASE_NAMEPHASE_NAMEPROPERTY_NAME| Constructor and Description |
|---|
AsyncInterceptingMessageProcessor(ThreadingProfile threadingProfile,
String name,
int shutdownTimeout) |
AsyncInterceptingMessageProcessor(WorkManagerSource workManagerSource) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fireAsyncScheduledNotification(MuleEvent event) |
protected void |
firePipelineNotification(MuleEvent event,
MessagingException exception) |
protected boolean |
isProcessAsync(MuleEvent event) |
MuleEvent |
process(MuleEvent event)
Invokes the MessageProcessor.
|
protected void |
processNextAsync(MuleEvent event) |
protected MuleEvent |
processNextTimed(MuleEvent event) |
void |
setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler) |
void |
start() |
void |
stop() |
addMessageProcessorPathElements, getListener, getMuleContext, isEventValid, processNext, setListener, setMuleContext, toStringgetAnnotation, getAnnotations, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetListenerpublic static final String SYNCHRONOUS_EVENT_ERROR_MESSAGE
protected WorkManagerSource workManagerSource
protected boolean doThreading
protected long threadTimeout
protected WorkManager workManager
public AsyncInterceptingMessageProcessor(WorkManagerSource workManagerSource)
public AsyncInterceptingMessageProcessor(ThreadingProfile threadingProfile, String name, int shutdownTimeout)
public void start()
throws MuleException
start in interface StartableMuleExceptionpublic void stop()
throws MuleException
stop in interface StoppableMuleExceptionpublic MuleEvent process(MuleEvent event) throws MuleException
MessageProcessorprocess in interface MessageProcessorevent - MuleEvent to be processedMuleExceptionprotected MuleEvent processNextTimed(MuleEvent event) throws MuleException
MuleExceptionprotected boolean isProcessAsync(MuleEvent event) throws MessagingException
MessagingExceptionprotected void processNextAsync(MuleEvent event) throws MuleException
MuleExceptionprotected void fireAsyncScheduledNotification(MuleEvent event)
public void setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler)
setMessagingExceptionHandler in interface MessagingExceptionHandlerAwareprotected void firePipelineNotification(MuleEvent event, MessagingException exception)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.