Package org.apache.camel.spi
Interface InternalProcessor
- All Superinterfaces:
AsyncProcessor,Processor
Internal
Processor that Camel routing engine used during routing for cross cutting functionality such as:
- Execute
UnitOfWork - Keeping track which route currently is being routed
- Execute
RoutePolicy - Gather JMX performance statics
- Tracing
- Debugging
- Message History
- Stream Caching
Transformer
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdvice(CamelInternalProcessorAdvice<?> advice) Adds anCamelInternalProcessorAdviceadvice to the list of advices to execute by this internal processor.voidAdd advice for JMX management for the routevoidaddRouteInflightRepositoryAdvice(InflightRepository inflightRepository, String routeId) Adds advice for tracking inflight exchanges for the given routevoidAdd advice for setting upUnitOfWorkwith the lifecycle of the route.voidaddRoutePolicyAdvice(List<RoutePolicy> routePolicyList) Adds advice for handlingRoutePolicyfor the route<T> TGets the advice with the given type.voidsetRouteOnAdvices(Route route) To make it possible for advices to access the created route.Methods inherited from interface org.apache.camel.AsyncProcessor
process, processAsync
-
Method Details
-
addAdvice
Adds anCamelInternalProcessorAdviceadvice to the list of advices to execute by this internal processor.- Parameters:
advice- the advice to add
-
getAdvice
Gets the advice with the given type.- Parameters:
type- the type of the advice- Returns:
- the advice if exists, or null if no advices has been added with the given type.
-
addRoutePolicyAdvice
Adds advice for handlingRoutePolicyfor the route -
addRouteInflightRepositoryAdvice
Adds advice for tracking inflight exchanges for the given route -
addRouteLifecycleAdvice
void addRouteLifecycleAdvice()Add advice for setting upUnitOfWorkwith the lifecycle of the route. -
addManagementInterceptStrategy
Add advice for JMX management for the route -
setRouteOnAdvices
To make it possible for advices to access the created route.
-