org.mule.api.processor
Interface CriteriaBasedMessageRouter<T extends Criteria>

All Superinterfaces:
MessageProcessor

public interface CriteriaBasedMessageRouter<T extends Criteria>
extends MessageProcessor

A MessageProcessor that routes messages to zero or more destination message processors using the specified criteria to determine if a router should be used not not. Implementatios determine the type of Criteria and how it is used as well as if the first route is used or if all valid routes are used.


Method Summary
 void addRoute(MessageProcessor processor, T criteria)
          Adds a new message processor to the list of routes
 boolean removeRoute(MessageProcessor processor)
          Removes a message processor from the list of routes
 
Methods inherited from interface org.mule.api.processor.MessageProcessor
process
 

Method Detail

addRoute

void addRoute(MessageProcessor processor,
              T criteria)
Adds a new message processor to the list of routes

Parameters:
processor - new destination message processor

removeRoute

boolean removeRoute(MessageProcessor processor)
Removes a message processor from the list of routes

Parameters:
processor - destination message processor to remove
Returns:
true if the route was removed


Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.