public class ClusteredRoutePolicyFactory extends Object implements RoutePolicyFactory
Constructor and Description |
---|
ClusteredRoutePolicyFactory(CamelClusterService.Selector selector,
String namespace) |
ClusteredRoutePolicyFactory(CamelClusterService clusterService,
String viewName) |
ClusteredRoutePolicyFactory(String namespace) |
Modifier and Type | Method and Description |
---|---|
RoutePolicy |
createRoutePolicy(CamelContext camelContext,
String routeId,
RouteDefinition route)
Creates a new
RoutePolicy which will be assigned to the given route. |
static ClusteredRoutePolicyFactory |
forNamespace(CamelClusterService.Selector selector,
String namespace) |
static ClusteredRoutePolicyFactory |
forNamespace(CamelClusterService clusterService,
String namespace) |
static ClusteredRoutePolicyFactory |
forNamespace(String namespace) |
public ClusteredRoutePolicyFactory(String namespace)
public ClusteredRoutePolicyFactory(CamelClusterService.Selector selector, String namespace)
public ClusteredRoutePolicyFactory(CamelClusterService clusterService, String viewName)
public RoutePolicy createRoutePolicy(CamelContext camelContext, String routeId, RouteDefinition route)
RoutePolicyFactory
RoutePolicy
which will be assigned to the given route.createRoutePolicy
in interface RoutePolicyFactory
camelContext
- the camel contextrouteId
- the route idroute
- the route definitionRoutePolicy
, or null to not use a policy for this routepublic static ClusteredRoutePolicyFactory forNamespace(String namespace)
public static ClusteredRoutePolicyFactory forNamespace(CamelClusterService.Selector selector, String namespace)
public static ClusteredRoutePolicyFactory forNamespace(CamelClusterService clusterService, String namespace)
Apache Camel