org.mule.routing
Class FirstSuccessfulRoutingStrategy
java.lang.Object
org.mule.routing.AbstractRoutingStrategy
org.mule.routing.FirstSuccessfulRoutingStrategy
- All Implemented Interfaces:
- RoutingStrategy
public class FirstSuccessfulRoutingStrategy
- extends AbstractRoutingStrategy
Routing strategy that routes the message through a list of MessageProcessor
until
one is successfully executed.
The message will be route to the first route, if the route execution is successful then
execution ends, if not the message will be route to the next route. This continues until a
successful route is found.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
failureExpressionFilter
protected ExpressionFilter failureExpressionFilter
FirstSuccessfulRoutingStrategy
public FirstSuccessfulRoutingStrategy(MuleContext muleContext,
String failureExpression)
- Parameters:
muleContext
- failureExpression
- Mule expression that validates if a MessageProcessor
execution was successful or not.
route
public MuleEvent route(MuleEvent event,
List<MessageProcessor> messageProcessors)
throws MessagingException
- Description copied from interface:
RoutingStrategy
- Routes
MuleEvent
through a set of MessageProcessor
- Returns:
-
- Throws:
MessagingException
Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.