org.mule.routing
Class RoundRobinRoutingStrategy

java.lang.Object
  extended by org.mule.routing.AbstractRoutingStrategy
      extended by 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.


Field Summary
 
Fields inherited from class org.mule.routing.AbstractRoutingStrategy
logger, magicProperties
 
Constructor Summary
RoundRobinRoutingStrategy(MuleContext muleContext, IdentifiableDynamicRouteResolver identifiableDynamicRouteResolver)
           
 
Method Summary
 MuleEvent route(MuleEvent event, List<MessageProcessor> messageProcessors)
          Routes MuleEvent through a set of MessageProcessor
 
Methods inherited from class org.mule.routing.AbstractRoutingStrategy
assertNonConsumableMessage, cloneMessage, cloneMessage, createEventToRoute, getMuleContext, propagateMagicProperties, sendRequest, validateMessageIsNotConsumable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoundRobinRoutingStrategy

public RoundRobinRoutingStrategy(MuleContext muleContext,
                                 IdentifiableDynamicRouteResolver identifiableDynamicRouteResolver)
Method Detail

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.