Package org.apache.camel.spi
Interface InternalProcessor
-
- All Superinterfaces:
AsyncProcessor,Processor
public interface InternalProcessor extends AsyncProcessor
InternalProcessorthat 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 voidaddAdvice(CamelInternalProcessorAdvice<?> advice)Adds anCamelInternalProcessorAdviceadvice to the list of advices to execute by this internal processor.voidaddManagementInterceptStrategy(ManagementInterceptStrategy.InstrumentationProcessor processor)voidaddRouteInflightRepositoryAdvice(InflightRepository inflightRepository, String routeId)voidaddRouteLifecycleAdvice()voidaddRoutePolicyAdvice(List<RoutePolicy> routePolicyList)<T> TgetAdvice(Class<T> type)Gets the advice with the given type.voidsetRouteOnAdvices(Route route)-
Methods inherited from interface org.apache.camel.AsyncProcessor
process, processAsync
-
-
-
-
Method Detail
-
addAdvice
void addAdvice(CamelInternalProcessorAdvice<?> advice)
Adds anCamelInternalProcessorAdviceadvice 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)
-
-