org.apache.servicemix.eip.support
Class RoutingRule
java.lang.Object
org.apache.servicemix.eip.support.RoutingRule
public class RoutingRule
- extends java.lang.Object
The RoutingRule interface is used by content based routers.
If the rule predicate matches the MessageExchange, the
target defined on the rule will be used as the destination for
the given MessageExchange.
- Version:
- $Revision: 376451 $
- Author:
- gnodet
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoutingRule
public RoutingRule()
RoutingRule
public RoutingRule(Predicate predicate,
ExchangeTarget target)
getPredicate
public Predicate getPredicate()
getTarget
public ExchangeTarget getTarget()
setPredicate
public void setPredicate(Predicate predicate)
- The predicate associated to this routing rule.
- Parameters:
predicate - The predicate to set.
setTarget
public void setTarget(ExchangeTarget target)
- The target to send the routed exchange to if the predicate matches.
- Parameters:
target - The target to set.
Copyright © 2005-2011 FuseSource. All Rights Reserved.