public interface Processor extends ReactiveProcessor
Event's. Implementations that do not mutate the Event or pass it on to another MessageProcessor
should return the MuleEvent they receive.
From 4.0 this interface also extends ReactiveProcessor and implementations of this interface can be used in
Event stream processing via the default implementation of apply(Publisher) that performs a map function on the
stream using the result of the invocation of the blocking process(Event) method. Using this approach simple processor
implementations that don't block or perform blocking IO can continue to implement Processor and require no changes.ReactiveProcessor.ProcessingType| Modifier and Type | Method and Description |
|---|---|
default org.reactivestreams.Publisher<Event> |
apply(org.reactivestreams.Publisher<Event> publisher)
Applies a
Publisher function transforming a stream of Event's. |
Event |
process(Event event)
Invokes the MessageProcessor.
|
getProcessingTypeEvent process(Event event) throws org.mule.runtime.api.exception.MuleException
event - MuleEvent to be processedorg.mule.runtime.api.exception.MuleExceptiondefault org.reactivestreams.Publisher<Event> apply(org.reactivestreams.Publisher<Event> publisher)
Publisher function transforming a stream of Event's.
The default implementation delegates to process(Event) and will:
process(Event) returns null.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.