org.mule.processor
Class AsyncInterceptingMessageProcessor
java.lang.Object
org.mule.processor.AbstractInterceptingMessageProcessor
org.mule.processor.AsyncInterceptingMessageProcessor
- All Implemented Interfaces:
- EventListener, javax.resource.spi.work.WorkListener, Startable, Stoppable, InterceptingMessageProcessor, MessageProcessor, MessageSource
- Direct Known Subclasses:
- SedaStageInterceptingMessageProcessor
public class AsyncInterceptingMessageProcessor
- extends AbstractInterceptingMessageProcessor
- implements javax.resource.spi.work.WorkListener, Startable, Stoppable
Processes MuleEvent's asynchronously using a MuleWorkManager to
schedule asynchronous processing of the next MessageProcessor. The next
MessageProcessor will therefore be executed in a different thread unless
the event is synchronous in which case the next MessageProcessor is
invoked directly in the same thread.
workManagerSource
protected WorkManagerSource workManagerSource
doThreading
protected boolean doThreading
workManager
protected WorkManager workManager
AsyncInterceptingMessageProcessor
public AsyncInterceptingMessageProcessor(WorkManagerSource workManagerSource,
boolean doThreading)
AsyncInterceptingMessageProcessor
public AsyncInterceptingMessageProcessor(ThreadingProfile threadingProfile,
String name,
int shutdownTimeout)
start
public void start()
throws MuleException
- Specified by:
start in interface Startable
- Throws:
MuleException
stop
public void stop()
throws MuleException
- Specified by:
stop in interface Stoppable
- 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
processAsync
protected void processAsync(MuleEvent event)
throws MuleException
- Throws:
MuleException
workAccepted
public void workAccepted(javax.resource.spi.work.WorkEvent event)
- Specified by:
workAccepted in interface javax.resource.spi.work.WorkListener
workRejected
public void workRejected(javax.resource.spi.work.WorkEvent event)
- Specified by:
workRejected in interface javax.resource.spi.work.WorkListener
workStarted
public void workStarted(javax.resource.spi.work.WorkEvent event)
- Specified by:
workStarted in interface javax.resource.spi.work.WorkListener
workCompleted
public void workCompleted(javax.resource.spi.work.WorkEvent event)
- Specified by:
workCompleted in interface javax.resource.spi.work.WorkListener
handleWorkException
protected void handleWorkException(javax.resource.spi.work.WorkEvent event,
String type)
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.