public abstract class AbstractSelectiveRouter extends AbstractAnnotatedObject implements SelectiveRouter, RouterStatisticsRecorder, Lifecycle, FlowConstructAware, MuleContextAware, MessageProcessorContainer
PHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAMEPROPERTY_NAME| Constructor and Description |
|---|
AbstractSelectiveRouter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessageProcessorPathElements(MessageProcessorPathElement pathElement)
Add the child nodes to the path element tree.
|
void |
addRoute(MessageProcessor processor,
Filter filter) |
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
List<MessageProcessorFilterPair> |
getConditionalMessageProcessors() |
RouterStatistics |
getRouterStatistics() |
void |
initialise()
Method used to perform any initialisation work.
|
MuleEvent |
process(MuleEvent event)
Invokes the MessageProcessor.
|
void |
removeRoute(MessageProcessor processor) |
protected abstract Collection<MessageProcessor> |
selectProcessors(MuleEvent event) |
void |
setDefaultRoute(MessageProcessor processor) |
void |
setFlowConstruct(FlowConstruct flowConstruct) |
void |
setMuleContext(MuleContext context) |
void |
setRouterStatistics(RouterStatistics routerStatistics) |
void |
start() |
void |
stop() |
String |
toString() |
void |
updateRoute(MessageProcessor processor,
Filter filter) |
getAnnotation, getAnnotations, setAnnotationspublic void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct in interface FlowConstructAwarepublic void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarepublic void initialise()
throws InitialisationException
InitialisableInitialisationException should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise in interface InitialisableInitialisationException - if a fatal error occurs causing the Mule instance to shutdownRecoverableException - if an error occurs that can be recovered frompublic void start()
throws MuleException
start in interface StartableMuleExceptionpublic void stop()
throws MuleException
stop in interface StoppableMuleExceptionpublic void dispose()
Disposabledispose in interface Disposablepublic void addRoute(MessageProcessor processor, Filter filter)
addRoute in interface SelectiveRouterpublic void removeRoute(MessageProcessor processor)
removeRoute in interface SelectiveRouterpublic void updateRoute(MessageProcessor processor, Filter filter)
updateRoute in interface SelectiveRouterpublic void setDefaultRoute(MessageProcessor processor)
setDefaultRoute in interface SelectiveRouterpublic MuleEvent process(MuleEvent event) throws MuleException
MessageProcessorprocess in interface MessageProcessorevent - MuleEvent to be processedMuleExceptionprotected abstract Collection<MessageProcessor> selectProcessors(MuleEvent event)
public List<MessageProcessorFilterPair> getConditionalMessageProcessors()
public RouterStatistics getRouterStatistics()
public void setRouterStatistics(RouterStatistics routerStatistics)
setRouterStatistics in interface RouterStatisticsRecorderpublic void addMessageProcessorPathElements(MessageProcessorPathElement pathElement)
MessageProcessorContaineraddMessageProcessorPathElements in interface MessageProcessorContainerCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.