public abstract class AbstractSelectiveRouter extends org.mule.runtime.api.meta.AbstractAnnotatedObject implements SelectiveRouter, RouterStatisticsRecorder, org.mule.runtime.api.lifecycle.Lifecycle, FlowConstructAware, MuleContextAware
ReactiveProcessor.ProcessingType| Constructor and Description |
|---|
AbstractSelectiveRouter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRoute(Processor processor,
Filter filter) |
org.reactivestreams.Publisher<Event> |
apply(org.reactivestreams.Publisher<Event> publisher)
Applies a
Publisher function transforming a stream of Event's. |
void |
dispose() |
List<MessageProcessorFilterPair> |
getConditionalMessageProcessors() |
protected Collection<Processor> |
getProcessorsToRoute(Event event) |
RouterStatistics |
getRouterStatistics() |
void |
initialise() |
Event |
process(Event event)
Invokes the MessageProcessor.
|
void |
removeRoute(Processor processor) |
protected abstract Collection<Processor> |
selectProcessors(Event event,
Event.Builder builder) |
void |
setDefaultRoute(Processor processor) |
void |
setFlowConstruct(FlowConstruct flowConstruct) |
void |
setMuleContext(MuleContext context) |
void |
setRouterStatistics(RouterStatistics routerStatistics) |
void |
start() |
void |
stop() |
String |
toString() |
void |
updateRoute(Processor processor,
Filter filter) |
getAnnotation, getAnnotations, getLocation, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProcessingTypepublic void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct in interface FlowConstructAwarepublic void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarecontext - the Mule node.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 addRoute(Processor processor, Filter filter)
addRoute in interface SelectiveRouterpublic void removeRoute(Processor processor)
removeRoute in interface SelectiveRouterpublic void updateRoute(Processor processor, Filter filter)
updateRoute in interface SelectiveRouterpublic void setDefaultRoute(Processor processor)
setDefaultRoute in interface SelectiveRouterpublic 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 Collection<Processor> getProcessorsToRoute(Event event) throws RoutePathNotFoundException
RoutePathNotFoundExceptionprotected abstract Collection<Processor> selectProcessors(Event event, Event.Builder builder)
public List<MessageProcessorFilterPair> getConditionalMessageProcessors()
public RouterStatistics getRouterStatistics()
public void setRouterStatistics(RouterStatistics routerStatistics)
setRouterStatistics in interface RouterStatisticsRecorderCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.