public abstract class AbstractMessageProcessorChain extends org.mule.runtime.api.meta.AbstractAnnotatedObject implements MessageProcessorChain
ReactiveProcessor.ProcessingType| Modifier and Type | Field and Description |
|---|---|
protected FlowConstruct |
flowConstruct |
protected MessageProcessorExecutionTemplate |
messageProcessorExecutionTemplate |
protected MessagingExceptionHandler |
messagingExceptionHandler |
protected MuleContext |
muleContext |
protected String |
name |
protected List<Processor> |
processors |
| Constructor and Description |
|---|
AbstractMessageProcessorChain(List<Processor> processors) |
AbstractMessageProcessorChain(String name,
List<Processor> processors) |
| 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. |
void |
dispose() |
protected Event |
doProcess(Event event) |
List<Processor> |
getMessageProcessors()
Obtain the list of
Processor's that this chains was created from. |
protected List<Processor> |
getMessageProcessorsForLifecycle() |
MessagingExceptionHandler |
getMessagingExceptionHandler() |
protected List<Processor> |
getProcessorsToExecute() |
void |
initialise() |
Event |
process(Event event)
Invokes the MessageProcessor.
|
void |
setFlowConstruct(FlowConstruct flowConstruct) |
void |
setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler) |
void |
setMuleContext(MuleContext muleContext) |
void |
start() |
void |
stop() |
String |
toString() |
getAnnotation, getAnnotations, getLocation, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProcessingTypeprotected String name
protected MuleContext muleContext
protected FlowConstruct flowConstruct
protected MessageProcessorExecutionTemplate messageProcessorExecutionTemplate
protected MessagingExceptionHandler messagingExceptionHandler
public Event process(Event event) throws org.mule.runtime.api.exception.MuleException
Processorprotected Event doProcess(Event event) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic 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.public List<Processor> getMessageProcessors()
MessageProcessorChainProcessor's that this chains was created from. Note that this is the linear view of all processors
that the chains was constructed from and does not represent in any way the structure of the chain once
InterceptingMessageProcessor's have been taken into account.getMessageProcessors in interface MessageProcessorChainpublic void setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler)
setMessagingExceptionHandler in interface MessagingExceptionHandlerAwarepublic MessagingExceptionHandler getMessagingExceptionHandler()
public void setMuleContext(MuleContext muleContext)
setMuleContext in interface MuleContextAwaremuleContext - the Mule node.public void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct in interface FlowConstructAwarepublic void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startableorg.mule.runtime.api.exception.MuleExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppableorg.mule.runtime.api.exception.MuleExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.DisposableCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.