public interface MatchingRouter extends MessageProcessor
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.
Modifier and Type | Method and Description |
---|---|
void |
addRoute(MatchableMessageProcessor matchable) |
void |
removeRoute(MatchableMessageProcessor matchable) |
process
void addRoute(MatchableMessageProcessor matchable)
void removeRoute(MatchableMessageProcessor matchable)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.