org.mule.processor
Class AsyncDelegateMessageProcessor
java.lang.Object
org.mule.processor.AbstractMessageProcessorOwner
org.mule.processor.AsyncDelegateMessageProcessor
- All Implemented Interfaces:
- FlowConstructAware, MuleContextAware, Disposable, Initialisable, Lifecycle, Startable, Stoppable, MessageProcessor
public class AsyncDelegateMessageProcessor
- extends AbstractMessageProcessorOwner
- implements MessageProcessor, Startable, Stoppable
Processes MuleEvent
's asynchronously using a MuleWorkManager
to schedule asynchronous
processing of MessageProcessor delegate configured 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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected Log logger
workManagerSource
protected WorkManagerSource workManagerSource
doThreading
protected boolean doThreading
workManager
protected WorkManager workManager
delegate
protected MessageProcessor delegate
AsyncDelegateMessageProcessor
public AsyncDelegateMessageProcessor(ThreadingProfile threadingProfile,
String name,
int shutdownTimeout)
start
public void start()
throws MuleException
- Specified by:
start
in interface Startable
- Overrides:
start
in class AbstractMessageProcessorOwner
- Throws:
MuleException
stop
public void stop()
throws MuleException
- Specified by:
stop
in interface Stoppable
- Overrides:
stop
in class AbstractMessageProcessorOwner
- Throws:
MuleException
process
public MuleEvent process(MuleEvent event)
throws MuleException
- Description copied from interface:
MessageProcessor
- Invokes the MessageProcessor.
- Specified by:
process
in interface MessageProcessor
- Parameters:
event
- MuleEvent to be processed
- Returns:
- optional response MuleEvent
- Throws:
MuleException
setDelegate
public void setDelegate(MessageProcessor delegate)
getOwnedMessageProcessors
protected List<MessageProcessor> getOwnedMessageProcessors()
- Specified by:
getOwnedMessageProcessors
in class AbstractMessageProcessorOwner
Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.