public class FirstSuccessful extends AbstractOutboundRouter
ReactiveProcessor.ProcessingType| Modifier and Type | Field and Description |
|---|---|
protected String |
failureExpression |
initialised, logger, resultsHandler, routes, started, transactionConfigflowConstruct, messagingExceptionHandler, muleContext| Constructor and Description |
|---|
FirstSuccessful() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialise() |
boolean |
isMatch(Event event,
Event.Builder builder)
Determines if the event should be processed
|
Event |
route(Event event)
Route the given event to one of our targets
|
void |
setFailureExpression(String failureExpression)
Specifies an expression that when evaluated as determines if the processing of one a route was a failure or not.
|
addRoute, createEventToRoute, dispose, doProcessRoute, getMuleContext, getOwnedMessageProcessors, getResultsHandler, getRouterStatistics, getRoutes, getTransactionConfig, isDynamicRoutes, process, removeRoute, sendRequest, sendRequestEvent, setFlowConstruct, setMessageProcessors, setMuleContext, setResultsHandler, setRouterStatistics, setRoutes, setTransactionConfig, start, stopgetOwnedObjectsgetFlowConstruct, setMessagingExceptionHandlergetAnnotation, getAnnotations, getLocation, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProcessingTypeprotected String failureExpression
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableinitialise in class AbstractOutboundRouterorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic Event route(Event event) throws org.mule.runtime.api.exception.MuleException
route in class AbstractOutboundRouterorg.mule.runtime.api.exception.MuleExceptionpublic boolean isMatch(Event event, Event.Builder builder) throws org.mule.runtime.api.exception.MuleException
Matchableevent - the current event to evaluatebuilder - an event builder in case the filter needs to make changes to the event.org.mule.runtime.api.exception.MuleException - if the event cannot be evaluatedpublic void setFailureExpression(String failureExpression)
failureExpression - ExpressionFilterCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.