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 TypeMethodDescriptionvoid
addAdvice
(CamelInternalProcessorAdvice<?> advice) Adds anCamelInternalProcessorAdvice
advice to the list of advices to execute by this internal processor.void
Add advice for JMX management for the routevoid
addRouteInflightRepositoryAdvice
(InflightRepository inflightRepository, String routeId) Adds advice for tracking inflight exchanges for the given routevoid
Add advice for setting upUnitOfWork
with the lifecycle of the route.void
addRoutePolicyAdvice
(List<RoutePolicy> routePolicyList) Adds advice for handlingRoutePolicy
for the route<T> T
Gets the advice with the given type.void
setRouteOnAdvices
(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 anCamelInternalProcessorAdvice
advice 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 handlingRoutePolicy
for the route -
addRouteInflightRepositoryAdvice
Adds advice for tracking inflight exchanges for the given route -
addRouteLifecycleAdvice
void addRouteLifecycleAdvice()Add advice for setting upUnitOfWork
with 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.
-