public class AsyncDelegateMessageProcessor extends AbstractMessageProcessorOwner implements Processor, org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.api.lifecycle.Startable, org.mule.runtime.api.lifecycle.Stoppable, MessagingExceptionHandlerAware
Event's asynchronously using a ProcessingStrategy to schedule asynchronous processing of
MessageProcessor delegate configured the next Processor. The next Processor 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.ReactiveProcessor.ProcessingType| Modifier and Type | Field and Description |
|---|---|
protected MessageProcessorChain |
delegate |
protected org.slf4j.Logger |
logger |
protected String |
name |
flowConstruct, muleContext| Constructor and Description |
|---|
AsyncDelegateMessageProcessor(MessageProcessorChain delegate) |
AsyncDelegateMessageProcessor(MessageProcessorChain delegate,
String name) |
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<Event> |
apply(org.reactivestreams.Publisher<Event> publisher)
Applies a
Publisher function transforming a stream of Event's. |
protected List<Processor> |
getOwnedMessageProcessors() |
void |
initialise() |
Event |
process(Event event)
Invokes the MessageProcessor.
|
void |
setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler) |
void |
start() |
void |
stop() |
getOwnedObjectsdispose, getFlowConstruct, getMuleContext, setFlowConstruct, setMuleContextgetAnnotation, getAnnotations, getLocation, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProcessingTypesetMuleContextsetFlowConstructprotected org.slf4j.Logger logger
protected MessageProcessorChain delegate
protected String name
public AsyncDelegateMessageProcessor(MessageProcessorChain delegate)
public AsyncDelegateMessageProcessor(MessageProcessorChain delegate, String name)
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableinitialise in class AbstractMuleObjectOwner<Processor>org.mule.runtime.api.lifecycle.InitialisationExceptionpublic void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startablestart in class AbstractMuleObjectOwner<Processor>org.mule.runtime.api.exception.MuleExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppablestop in class AbstractMuleObjectOwner<Processor>org.mule.runtime.api.exception.MuleExceptionpublic Event process(Event event) throws org.mule.runtime.api.exception.MuleException
Processorpublic org.reactivestreams.Publisher<Event> apply(org.reactivestreams.Publisher<Event> publisher)
ProcessorPublisher function transforming a stream of Event's.
The default implementation delegates to Processor.process(Event) and will:
Processor.process(Event) returns null.protected List<Processor> getOwnedMessageProcessors()
getOwnedMessageProcessors in class AbstractMessageProcessorOwnerpublic void setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler)
setMessagingExceptionHandler in interface MessagingExceptionHandlerAwaresetMessagingExceptionHandler in class AbstractMuleObjectOwner<Processor>Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.