public static class CamelInternalProcessor.RoutePolicyAdvice extends Object implements org.apache.camel.spi.CamelInternalProcessorAdvice
RoutePolicy
a route may have been configured with.Constructor and Description |
---|
RoutePolicyAdvice(List<org.apache.camel.spi.RoutePolicy> routePolicies) |
Modifier and Type | Method and Description |
---|---|
void |
after(org.apache.camel.Exchange exchange,
Object data) |
Object |
before(org.apache.camel.Exchange exchange) |
protected boolean |
isRoutePolicyRunAllowed(org.apache.camel.spi.RoutePolicy policy)
Strategy to determine if this policy is allowed to run
|
void |
setRoute(org.apache.camel.Route route) |
public RoutePolicyAdvice(List<org.apache.camel.spi.RoutePolicy> routePolicies)
public void setRoute(org.apache.camel.Route route)
protected boolean isRoutePolicyRunAllowed(org.apache.camel.spi.RoutePolicy policy)
policy
- the policypublic Object before(org.apache.camel.Exchange exchange) throws Exception
before
in interface org.apache.camel.spi.CamelInternalProcessorAdvice
Exception
Apache Camel