public class FirstSuccessful extends AbstractOutboundRouter
| Modifier and Type | Field and Description |
|---|---|
protected String |
failureExpression |
enableCorrelation, initialised, logger, replyTo, resultsHandler, routes, started, transactionConfigflowConstruct, messagingExceptionHandler, muleContextPHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAMEPROPERTY_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, stopaddMessageProcessorPathElements, getAnnotation, getAnnotations, getOwnedObjects, setAnnotationsgetFlowConstruct, getMessagingExceptionHandler, setFlowConstruct, setMessagingExceptionHandler, setMuleContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetMuleContextsetFlowConstructprotected String failureExpression
public 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 Initialisableinitialise in class AbstractOutboundRouterInitialisationException - 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 AbstractOutboundRouterMessagingExceptionpublic boolean isMatch(MuleMessage message) throws MuleException
Matchablemessage - the current message to evaluateMuleException - if the event cannot be evaluatedpublic void setFailureExpression(String failureExpression)
failureExpression - ExpressionFilterCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.