org.apache.camel.spi
Interface RoutePolicyFactory


public interface RoutePolicyFactory

A factory to create RoutePolicy and assign to routes automatic.


Method Summary
 RoutePolicy createRoutePolicy(CamelContext camelContext, String routeId, RouteDefinition route)
          Creates a new RoutePolicy which will be assigned to the given route.
 

Method Detail

createRoutePolicy

RoutePolicy createRoutePolicy(CamelContext camelContext,
                              String routeId,
                              RouteDefinition route)
Creates a new RoutePolicy which will be assigned to the given route.

Parameters:
camelContext - the camel context
routeId - the route id
route - the route definition
Returns:
the created RoutePolicy, or null to not use a policy for this route


Apache Camel