public class ResponseMessageProcessorAdapter extends AbstractInterceptingMessageProcessor implements org.mule.runtime.api.lifecycle.Lifecycle, FlowConstructAware
ReactiveProcessor.ProcessingType| Modifier and Type | Field and Description |
|---|---|
protected MessageProcessorExecutionTemplate |
messageProcessorExecutionTemplate |
protected Processor |
responseProcessor |
flowConstruct, logger, muleContext, next| Constructor and Description |
|---|
ResponseMessageProcessorAdapter() |
ResponseMessageProcessorAdapter(Processor responseProcessor) |
| 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() |
void |
initialise() |
Event |
process(Event event)
Invokes the MessageProcessor.
|
void |
setFlowConstruct(FlowConstruct flowConstruct) |
void |
setMuleContext(MuleContext muleContext) |
void |
setProcessor(Processor processor) |
void |
start() |
void |
stop() |
applyNext, getListener, getMuleContext, isEventValid, processNext, setListener, toStringgetAnnotation, getAnnotations, getLocation, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetListenergetProcessingTypeprotected MessageProcessorExecutionTemplate messageProcessorExecutionTemplate
protected Processor responseProcessor
public ResponseMessageProcessorAdapter()
public ResponseMessageProcessorAdapter(Processor responseProcessor)
public void setProcessor(Processor processor)
public 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.public 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.Disposablepublic void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct in interface FlowConstructAwaresetFlowConstruct in class AbstractInterceptingMessageProcessorBasepublic void setMuleContext(MuleContext muleContext)
setMuleContext in interface MuleContextAwaresetMuleContext in class AbstractInterceptingMessageProcessorBasemuleContext - the Mule node.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.