public class FirstSuccessful extends AbstractOutboundRouter
Modifier and Type | Field and Description |
---|---|
protected String |
failureExpression |
enableCorrelation, initialised, logger, replyTo, resultsHandler, routes, started, transactionConfig
flowConstruct, messagingExceptionHandler, muleContext
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
PROPERTY_NAME
Constructor and Description |
---|
FirstSuccessful() |
Modifier and Type | Method and Description |
---|---|
void |
initialise()
Method used to perform any initialisation work.
|
boolean |
isMatch(MuleMessage message)
Determines if the event should be processed
|
MuleEvent |
route(MuleEvent 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, cloneMessage, cloneMessage, createEventToRoute, dispose, getEnableCorrelation, getMuleContext, getOwnedMessageProcessors, getReplyTo, getResultsHandler, getRoute, getRouterStatistics, getRoutes, getTransactionConfig, isDynamicRoutes, process, propagateMagicProperties, removeRoute, sendRequest, sendRequestEvent, setEnableCorrelation, setEnableCorrelationAsString, setMessageProcessors, setMessageProperties, setReplyTo, setResultsHandler, setRouterStatistics, setRoutes, setTransactionConfig, start, stop
addMessageProcessorPathElements, getAnnotation, getAnnotations, getOwnedObjects, setAnnotations
getFlowConstruct, getMessagingExceptionHandler, setFlowConstruct, setMessagingExceptionHandler, setMuleContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setMuleContext
setFlowConstruct
protected String failureExpression
public void initialise() throws InitialisationException
Initialisable
InitialisationException
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 Initialisable
initialise
in class AbstractOutboundRouter
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic MuleEvent route(MuleEvent event) throws MessagingException
route
in class AbstractOutboundRouter
MessagingException
public boolean isMatch(MuleMessage message) throws MuleException
Matchable
message
- the current message to evaluateMuleException
- if the event cannot be evaluatedpublic void setFailureExpression(String failureExpression)
failureExpression
- ExpressionFilter
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.