Uses of Interface
org.apache.camel.Processor
Packages that use Processor
Package
Description
The core Camel API.
Service Provider Interfaces used by the Camel runtime which are plugin strategies.
-
Uses of Processor in org.apache.camel
Subinterfaces of Processor in org.apache.camelModifier and TypeInterfaceDescriptioninterface
An asynchronous processor which can process anExchange
in an asynchronous fashion and signal completion by invoking theAsyncCallback
.interface
Asynchronous producerinterface
Channel acts as a channel betweenProcessor
s in the route graph.interface
Interface to be used for processors that delegate to the real processorinterface
Provides a channel on which clients can create and invoke message exchanges on anEndpoint
.Methods in org.apache.camel with type parameters of type ProcessorModifier and TypeMethodDescription<T extends Processor>
TCamelContext.getProcessor
(String id, Class<T> type) Gets the processor from any of the routes which with the given idMethods in org.apache.camel that return ProcessorModifier and TypeMethodDescriptionExtendedCamelContext.createErrorHandler
(Route route, Processor processor) Internal API for creating error handler.Channel.getErrorHandler()
Gets theErrorHandler
this Channel uses.Channel.getNextProcessor()
Gets the nextProcessor
to route to (not wrapped)Route.getOnException
(String onExceptionId) Channel.getOutput()
Gets the wrapped output that at runtime should be delegated to.CamelContext.getProcessor
(String id) Gets the processor from any of the routes which with the given idConsumer.getProcessor()
The processor that will process theExchange
that was consumed.DelegateProcessor.getProcessor()
Gets the delegatedProcessor
.Route.getProcessor()
Gets theProcessor
Methods in org.apache.camel that return types with arguments of type ProcessorModifier and TypeMethodDescriptionReturns a list of all theProcessor
s from this route that has id's matching the patternRoute.getEventDrivenProcessors()
This method retrieves the event driven Processors on this route context.Route.getOnCompletions()
Route.getOnExceptions()
Route.navigate()
Returns a navigator to navigate this route by navigating all theProcessor
s.Methods in org.apache.camel with parameters of type ProcessorModifier and TypeMethodDescriptionSends an asynchronous exchange to the given endpoint.Sends an asynchronous exchange to the given endpoint.Endpoint.createConsumer
(Processor processor) Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor Important: Do not do any initialization in the constructor of theConsumer
.ExtendedCamelContext.createErrorHandler
(Route route, Processor processor) Internal API for creating error handler.void
Channel.initChannel
(Route route, NamedNode definition, NamedNode childDefinition, List<InterceptStrategy> interceptors, Processor nextProcessor, NamedRoute routeDefinition, boolean first) Initializes the channel.Sends an exchange to an endpoint using a supplied processor Uses anExchangePattern.InOut
message exchange pattern.Sends an exchange to an endpoint using a supplied processor Uses anExchangePattern.InOut
message exchange pattern.ProducerTemplate.send
(String endpointUri, ExchangePattern pattern, Processor processor) Sends an exchange to an endpoint using a supplied processor
Sends an exchange to an endpoint using a supplied processor
ProducerTemplate.send
(Endpoint endpoint, ExchangePattern pattern, Processor processor) Sends an exchange to an endpoint using a supplied processor
ProducerTemplate.send
(Endpoint endpoint, ExchangePattern pattern, Processor processor, Processor resultProcessor) Sends an exchange to an endpoint using a supplied processor
Sends an exchange to an endpoint using a supplied processor
Sends an exchange to the default endpoint using a supplied processor
Notice: that if the processing of the exchange failed with an Exception it is not thrown from this method, but you can access it from the returned exchange usingExchange.getException()
.void
Channel.setErrorHandler
(Processor errorHandler) Sets theErrorHandler
this Channel uses.void
Route.setOnCompletion
(String onCompletionId, Processor processor) void
Route.setOnException
(String onExceptionId, Processor processor) void
Route.setProcessor
(Processor processor) Sets theProcessor
FluentProducerTemplate.withProcessor
(Processor processor) Set the processor to use for send/request.Method parameters in org.apache.camel with type arguments of type ProcessorModifier and TypeMethodDescriptionFluentProducerTemplate.withProcessor
(Supplier<Processor> processorSupplier) Set the processorSupplier which will be invoke to get the processor to be used for send/request. -
Uses of Processor in org.apache.camel.spi
Subinterfaces of Processor in org.apache.camel.spiModifier and TypeInterfaceDescriptioninterface
An interface used to represent an error handlerinterface
InternalProcessor
that Camel routing engine used during routing for cross cutting functionality such as: ExecuteUnitOfWork
Keeping track which route currently is being routed ExecuteRoutePolicy
Gather JMX performance statics Tracing Debugging Message History Stream CachingTransformer
... and more.static interface
interface
A Shared (thread safe) internalProcessor
that Camel routing engine used during routing for cross cutting functionality such as: ExecuteUnitOfWork
Keeping track which route currently is being routed ExecuteRoutePolicy
Gather JMX performance statics Tracing Debugging Message History Stream CachingTransformer
... and more.Methods in org.apache.camel.spi that return ProcessorModifier and TypeMethodDescriptionRestApiProcessorFactory.createApiProcessor
(CamelContext camelContext, String contextPath, RestConfiguration configuration, Map<String, Object> parameters) Creates a new REST API Processor , which provides API listing of the REST servicesBeanProcessorFactory.createBeanProcessor
(CamelContext camelContext, Object bean, Method method) Creates the bean processor from the existing bean instanceBeanProcessorFactory.createBeanProcessor
(CamelContext camelContext, Object bean, String beanType, Class<?> beanClass, String ref, String method, BeanScope scope) Creates the bean processor from a given set of parameters that can refer to the bean via an existing bean, a reference to a bean, or its class name etc.ProcessorFactory.createChildProcessor
(Route route, NamedNode definition, boolean mandatory) Creates the child processor.ModelReifierFactory.createErrorHandler
(Route route, ErrorHandlerFactory errorHandlerFactory, Processor processor) Creates the error handler using the factory for the route processor.ModelReifierFactory.createErrorHandler
(Route route, Processor processor) Creates the error handler for the route processor.SendDynamicAware.createPostProcessor
(Exchange exchange, SendDynamicAware.DynamicAwareEntry entry) Creates an optional postProcessor
that will be executed afterwards when the message has been sent dynamic.SendDynamicAware.createPreProcessor
(Exchange exchange, SendDynamicAware.DynamicAwareEntry entry) ProcessorFactory.createProcessor
(CamelContext camelContext, String definitionName, Object[] args) Creates a processor by the name of the definition.ProcessorFactory.createProcessor
(Route route, NamedNode definition) Creates the processor.InterceptSendToEndpoint.getAfter()
The processor (optional) for routing after sending to the original endpoint.InterceptSendToEndpoint.getBefore()
The processor for routing in a detour before sending to the original endpoint.ErrorHandlerAware.getErrorHandler()
Gets the error handlerCamelEvent.ExchangeFailureEvent.getFailureHandler()
ErrorHandlerRedeliveryCustomizer.getOutput()
Returns the output processorProcessorExchangeFactory.getProcessor()
The processor using this factory.WrapAwareProcessor.getWrapped()
Gets the wrappedProcessor
Wraps any applicable interceptors around the given processor.InterceptStrategy.wrapProcessorInInterceptors
(CamelContext context, NamedNode definition, Processor target, Processor nextTarget) Give implementor an opportunity to wrap the target processor in a route.Methods in org.apache.camel.spi with parameters of type ProcessorModifier and TypeMethodDescriptionInternalProcessorFactory.addChildUnitOfWorkProcessorAdvice
(CamelContext camelContext, Processor processor, Route route, UnitOfWork parent) InternalProcessorFactory.addUnitOfWorkProcessorAdvice
(CamelContext camelContext, Processor processor, Route route) void
BacklogDebugger.afterProcess
(Exchange exchange, Processor processor, NamedNode definition, long timeTaken) Callback invoked after a breakpointvoid
Breakpoint.afterProcess
(Exchange exchange, Processor processor, NamedNode definition, long timeTaken) Callback invoked when the breakpoint was hit and theExchange
has been processed (after).boolean
Debugger.afterProcess
(Exchange exchange, Processor processor, NamedNode definition, long timeTaken) Callback invoked when anExchange
has been processed which allows implementators to notify breakpoints.void
UnitOfWork.afterProcess
(Processor processor, Exchange exchange, AsyncCallback callback, boolean doneSync) Strategy for work to be executed after the processingProducerCache.asyncSendExchange
(Endpoint endpoint, ExchangePattern pattern, Processor processor, Processor resultProcessor, Exchange exchange, CompletableFuture<Exchange> future) Asynchronously sends an exchange to an endpoint using a suppliedProcessor
to populate the exchangeorg.apache.camel.util.StopWatch
BacklogDebugger.beforeProcess
(Exchange exchange, Processor processor, NamedNode definition) Callback invoked before hitting a breakpointvoid
Breakpoint.beforeProcess
(Exchange exchange, Processor processor, NamedNode definition) Callback invoked when the breakpoint was hit and theExchange
is about to be processed (before).boolean
Debugger.beforeProcess
(Exchange exchange, Processor processor, NamedNode definition) Callback invoked when anExchange
is about to be processed which allows implementators to notify breakpoints.UnitOfWork.beforeProcess
(Processor processor, Exchange exchange, AsyncCallback callback) Strategy for work to be executed before processing.void
ErrorHandlerRedeliveryCustomizer.changeOutput
(Processor output) Allows to change the output of the error handler which are used when optimising the JMX instrumentation to use either an advice or wrapped processor when calling a processor.RestApiConsumerFactory.createApiConsumer
(CamelContext camelContext, Processor processor, String contextPath, RestConfiguration configuration, Map<String, Object> parameters) Creates a new REST API Event Driven Consumer, which provides API listing of the REST servicesRestConsumerFactory.createConsumer
(CamelContext camelContext, Processor processor, String verb, String basePath, String uriTemplate, String consumes, String produces, RestConfiguration configuration, Map<String, Object> parameters) Creates a new REST Event Driven Consumer, which consumes messages from the endpoint using the given processorRestOpenApiConsumerFactory.createConsumer
(CamelContext camelContext, Processor processor, String contextPath, RestConfiguration configuration, Map<String, Object> parameters) Creates a new REST Event Driven Consumer, which consumes messages from the endpoint using the given processorModelReifierFactory.createErrorHandler
(Route route, ErrorHandlerFactory errorHandlerFactory, Processor processor) Creates the error handler using the factory for the route processor.ModelReifierFactory.createErrorHandler
(Route route, Processor processor) Creates the error handler for the route processor.EventFactory.createExchangeFailureHandledEvent
(Exchange exchange, Processor failureHandler, boolean deadLetterChannel, String deadLetterUri) Creates anCamelEvent
when anExchange
has failed but was handled by the Camel error handlers such as an dead letter channel, or a doTry .. doCatch block.EventFactory.createExchangeFailureHandlingEvent
(Exchange exchange, Processor failureHandler, boolean deadLetterChannel, String deadLetterUri) Creates anCamelEvent
when anExchange
has failed but is being handled by the Camel error handlers such as an dead letter channel, or a doTry .. doCatch block.InterceptEndpointFactory.createInterceptSendToEndpoint
(CamelContext camelContext, Endpoint endpoint, boolean skip, Predicate onWhen, Processor before, Processor after) Creates an endpoint when intercepting sending to an endpoint (detour).ManagementInterceptStrategy.createProcessor
(NamedNode definition, Processor target) InternalProcessorFactory.createWrapProcessor
(Processor processor, Processor wrapped) ManagementObjectStrategy.getManagedObjectForProcessor
(CamelContext context, Processor processor, NamedNode definition, Route route) ManagementObjectNameStrategy.getObjectNameForProcessor
(CamelContext context, Processor processor, NamedNode definition) ManagementObjectNameStrategy.getObjectNameForStep
(CamelContext context, Processor processor, NamedNode definition) boolean
Condition.matchProcess
(Exchange exchange, Processor processor, NamedNode definition, boolean before) Does the condition matchProcessorExchangeFactory.newProcessorExchangeFactory
(Processor processor) Creates a newProcessorExchangeFactory
that is private for the given consumer.boolean
SharedInternalProcessor.process
(Exchange exchange, AsyncCallback originalCallback, AsyncProcessor processor, Processor resultProcessor) Asynchronous APIvoid
SharedInternalProcessor.process
(Exchange exchange, AsyncProcessor processor, Processor resultProcessor) Synchronous APISends the exchange to the given endpoint.void
Sets the processor (optional) for routing after sending to the original endpoint.void
Sets the processor for routing in a detour before sending to the original endpoint.void
ErrorHandlerAware.setErrorHandler
(Processor errorHandler) Sets the error handlervoid
ManagementInterceptStrategy.InstrumentationProcessor.setProcessor
(Processor processor) Wraps any applicable interceptors around the given processor.InterceptStrategy.wrapProcessorInInterceptors
(CamelContext context, NamedNode definition, Processor target, Processor nextTarget) Give implementor an opportunity to wrap the target processor in a route.