RoutePolicyPage added by Claus IbsenRoutePolicyAvailable as of Camel 2.1 A route policy org.apache.camel.spi.RoutePolicy is used to control route(s) at runtime. For example you can use it to determine whether a route should be running or not. However the policies is can support any kind of use cases. How it worksYou associate a route with a given RoutePolicy and then during runtime Camel will invoke callbacks on this policy where you can implement your custom logic. Camel provides a support class that is a good base class to extend org.apache.camel.impl.RoutePolicySupport. There are two callbacks invoked
Camel provides the following policies out of the box
ThrottlingRoutePolicyThe throttling route policy has the following options:
Configuring policyYou configure the route policy as follows from Java DSL, using the routePolicy method: RoutePolicy myPolicy = new MyRoutePolicy(); from("seda:foo").routePolicy(myPolicy).to("mock:result");
Change Notification Preferences
View Online
|
Add Comment
|
- [CONF] Apache Camel > RoutePolicy confluence
- [CONF] Apache Camel > RoutePolicy confluence
- [CONF] Apache Camel > RoutePolicy confluence
- [CONF] Apache Camel > RoutePolicy confluence
- [CONF] Apache Camel > RoutePolicy confluence
