Package org.apache.camel.spi
Interface InternalProcessor
-
- All Superinterfaces:
AsyncProcessor
,Processor
public interface InternalProcessor extends AsyncProcessor
InternalProcessor
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addAdvice(CamelInternalProcessorAdvice<?> advice)
Adds anCamelInternalProcessorAdvice
advice to the list of advices to execute by this internal processor.void
addManagementInterceptStrategy(ManagementInterceptStrategy.InstrumentationProcessor processor)
void
addRouteInflightRepositoryAdvice(InflightRepository inflightRepository, String routeId)
void
addRouteLifecycleAdvice()
void
addRoutePolicyAdvice(List<RoutePolicy> routePolicyList)
<T> T
getAdvice(Class<T> type)
Gets the advice with the given type.void
setRouteOnAdvices(Route route)
-
Methods inherited from interface org.apache.camel.AsyncProcessor
process, processAsync
-
-
-
-
Method Detail
-
addAdvice
void addAdvice(CamelInternalProcessorAdvice<?> advice)
Adds anCamelInternalProcessorAdvice
advice to the list of advices to execute by this internal processor.- Parameters:
advice
- the advice to add
-
getAdvice
<T> T getAdvice(Class<T> type)
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
void addRoutePolicyAdvice(List<RoutePolicy> routePolicyList)
-
addRouteInflightRepositoryAdvice
void addRouteInflightRepositoryAdvice(InflightRepository inflightRepository, String routeId)
-
addRouteLifecycleAdvice
void addRouteLifecycleAdvice()
-
addManagementInterceptStrategy
void addManagementInterceptStrategy(ManagementInterceptStrategy.InstrumentationProcessor processor)
-
setRouteOnAdvices
void setRouteOnAdvices(Route route)
-
-