org.mule.api.routing
Interface MatchingRouter
- All Superinterfaces:
- MessageProcessor
- All Known Subinterfaces:
- OutboundRouterCollection
- All Known Implementing Classes:
- AbstractMatchingRouter, DefaultOutboundRouterCollection
public interface MatchingRouter
- extends MessageProcessor
Routes the message to zero or more MatchableMessageProcessor
s. Which
route(s) are used used is defined by implementations of this interface which use
the Matchable.isMatch(org.mule.api.MuleMessage)
method of the routers to
determine if a router accept the event or not.
Different implementations may route to the first match, or to all matches or you
some other strategy. If the implementation supports the use of a default route
then this will be used to route any events that don't match any other routes.
addRoute
void addRoute(MatchableMessageProcessor matchable)
removeRoute
void removeRoute(MatchableMessageProcessor matchable)
Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.