org.mule.routing
Class RoundRobinRoutingStrategy
java.lang.Object
org.mule.routing.AbstractRoutingStrategy
org.mule.routing.RoundRobinRoutingStrategy
- All Implemented Interfaces:
- RoutingStrategy
public class RoundRobinRoutingStrategy
- extends AbstractRoutingStrategy
Routing strategy that divides the messages it receives among its target routes in round-robin
fashion. The set of routes is obtained dynamically using a DynamicRouteResolver
.
This includes messages received on all threads, so there is no guarantee
that messages received from a splitter are sent to consecutively numbered targets.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoundRobinRoutingStrategy
public RoundRobinRoutingStrategy(MuleContext muleContext,
IdentifiableDynamicRouteResolver identifiableDynamicRouteResolver)
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.