public static class CamelInternalProcessor.RoutePolicyAdvice extends Object implements CamelInternalProcessorAdvice
RoutePolicy a route may have been configured with.| Constructor and Description |
|---|
RoutePolicyAdvice(List<RoutePolicy> routePolicies) |
| Modifier and Type | Method and Description |
|---|---|
void |
after(Exchange exchange,
Object data)
Callback executed after processing a step in the route.
|
Object |
before(Exchange exchange)
Callback executed before processing a step in the route.
|
protected boolean |
isRoutePolicyRunAllowed(RoutePolicy policy)
Strategy to determine if this policy is allowed to run
|
void |
setRoute(Route route) |
public RoutePolicyAdvice(List<RoutePolicy> routePolicies)
protected boolean isRoutePolicyRunAllowed(RoutePolicy policy)
policy - the policypublic Object before(Exchange exchange) throws Exception
CamelInternalProcessorAdvicebefore in interface CamelInternalProcessorAdviceexchange - the current exchangeCamelInternalProcessorAdvice.after(org.apache.camel.Exchange, Object) method, or use null for no state.Exception - is thrown if error during the call.public void after(Exchange exchange, Object data) throws Exception
CamelInternalProcessorAdviceafter in interface CamelInternalProcessorAdviceexchange - the current exchangedata - the state, if any, returned in the CamelInternalProcessorAdvice.before(org.apache.camel.Exchange) method.Exception - is thrown if error during the call.Apache Camel