Uses of Interface
org.apache.camel.Processor
-
Packages that use Processor Package Description org.apache.camel The core Camel API.org.apache.camel.spi 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.camel Modifier and Type Interface Description interface
AsyncProcessor
An asynchronous processor which can process anExchange
in an asynchronous fashion and signal completion by invoking theAsyncCallback
.interface
AsyncProducer
Asynchronous producerinterface
Channel
Channel acts as a channel betweenProcessor
s in the route graph.interface
DelegateProcessor
Interface to be used for processors that delegate to the real processorinterface
Producer
Provides a channel on which clients can create and invoke message exchanges on anEndpoint
.Methods in org.apache.camel with type parameters of type Processor Modifier and Type Method Description <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 Processor Modifier and Type Method Description Processor
ExtendedCamelContext. createErrorHandler(Route route, Processor processor)
Internal API for creating error handler.Processor
Channel. getErrorHandler()
Gets theErrorHandler
this Channel uses.Processor
Channel. getNextProcessor()
Gets the nextProcessor
to route to (not wrapped)Processor
Route. getOnException(String onExceptionId)
Processor
Channel. getOutput()
Gets the wrapped output that at runtime should be delegated to.Processor
CamelContext. getProcessor(String id)
Gets the processor from any of the routes which with the given idProcessor
Consumer. getProcessor()
The processor that will process theExchange
that was consumed.Processor
DelegateProcessor. getProcessor()
Gets the delegatedProcessor
.Processor
Route. getProcessor()
Gets theProcessor
Methods in org.apache.camel that return types with arguments of type Processor Modifier and Type Method Description List<Processor>
Route. filter(String pattern)
Returns a list of all theProcessor
s from this route that has id's matching the patternList<Processor>
Route. getEventDrivenProcessors()
This method retrieves the event driven Processors on this route context.Collection<Processor>
Route. getOnCompletions()
Collection<Processor>
Route. getOnExceptions()
Navigate<Processor>
Route. navigate()
Returns a navigator to navigate this route by navigating all theProcessor
s.Methods in org.apache.camel with parameters of type Processor Modifier and Type Method Description CompletableFuture<Exchange>
ProducerTemplate. asyncCallback(String endpointUri, Processor processor, Synchronization onCompletion)
Deprecated.CompletableFuture<Exchange>
ProducerTemplate. asyncCallback(Endpoint endpoint, Processor processor, Synchronization onCompletion)
Deprecated.CompletableFuture<Exchange>
ProducerTemplate. asyncSend(String endpointUri, Processor processor)
Sends an asynchronous exchange to the given endpoint.CompletableFuture<Exchange>
ProducerTemplate. asyncSend(Endpoint endpoint, Processor processor)
Sends an asynchronous exchange to the given endpoint.Consumer
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
.Processor
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.Exchange
ProducerTemplate. request(String endpointUri, Processor processor)
Sends an exchange to an endpoint using a supplied processor Uses anExchangePattern.InOut
message exchange pattern.Exchange
ProducerTemplate. request(Endpoint endpoint, Processor processor)
Sends an exchange to an endpoint using a supplied processor Uses anExchangePattern.InOut
message exchange pattern.Exchange
ProducerTemplate. send(String endpointUri, ExchangePattern pattern, Processor processor)
Sends an exchange to an endpoint using a supplied processor
Exchange
ProducerTemplate. send(String endpointUri, Processor processor)
Sends an exchange to an endpoint using a supplied processor
Exchange
ProducerTemplate. send(Endpoint endpoint, ExchangePattern pattern, Processor processor)
Sends an exchange to an endpoint using a supplied processor
Exchange
ProducerTemplate. send(Endpoint endpoint, ExchangePattern pattern, Processor processor, Processor resultProcessor)
Sends an exchange to an endpoint using a supplied processor
Exchange
ProducerTemplate. send(Endpoint endpoint, Processor processor)
Sends an exchange to an endpoint using a supplied processor
Exchange
ProducerTemplate. send(Processor 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
FluentProducerTemplate. withProcessor(Processor processor)
Set the processor to use for send/request.Method parameters in org.apache.camel with type arguments of type Processor Modifier and Type Method Description FluentProducerTemplate
FluentProducerTemplate. 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.spi Modifier and Type Interface Description interface
ErrorHandler
An interface used to represent an error handlerinterface
InternalProcessor
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
...static interface
ManagementInterceptStrategy.InstrumentationProcessor<T>
interface
SharedInternalProcessor
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
...Methods in org.apache.camel.spi that return Processor Modifier and Type Method Description Processor
RestApiProcessorFactory. createApiProcessor(CamelContext camelContext, String contextPath, RestConfiguration configuration, Map<String,Object> parameters)
Creates a new REST API Processor , which provides API listing of the REST servicesProcessor
BeanProcessorFactory. createBeanProcessor(CamelContext camelContext, Object bean, Method method)
Creates the bean processor from the existing bean instanceProcessor
BeanProcessorFactory. 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.Processor
ProcessorFactory. createChildProcessor(Route route, NamedNode definition, boolean mandatory)
Creates the child processor.Processor
ModelReifierFactory. createErrorHandler(Route route, ErrorHandlerFactory errorHandlerFactory, Processor processor)
Processor
ModelReifierFactory. createErrorHandler(Route route, Processor processor)
Processor
SendDynamicAware. createPostProcessor(Exchange exchange, SendDynamicAware.DynamicAwareEntry entry)
Creates an optional postProcessor
that will be executed afterwards when the message has been sent dynamic.Processor
SendDynamicAware. createPreProcessor(Exchange exchange, SendDynamicAware.DynamicAwareEntry entry)
Processor
ProcessorFactory. createProcessor(CamelContext camelContext, String definitionName, Object[] args)
Creates a processor by the name of the definition.Processor
ProcessorFactory. createProcessor(Route route, NamedNode definition)
Creates the processor.Processor
InterceptSendToEndpoint. getAfter()
The processor (optional) for routing after sending to the original endpoint.Processor
InterceptSendToEndpoint. getBefore()
The processor for routing in a detour before sending to the original endpoint.Processor
ErrorHandlerAware. getErrorHandler()
Gets the error handlerProcessor
CamelEvent.ExchangeFailureEvent. getFailureHandler()
Processor
ErrorHandlerRedeliveryCustomizer. getOutput()
Returns the output processorProcessor
ProcessorExchangeFactory. getProcessor()
The processor using this factory.Processor
WrapAwareProcessor. getWrapped()
Gets the wrappedProcessor
Processor
Policy. wrap(Route route, Processor processor)
Wraps any applicable interceptors around the given processor.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 Processor Modifier and Type Method Description InternalProcessor
InternalProcessorFactory. addChildUnitOfWorkProcessorAdvice(CamelContext camelContext, Processor processor, Route route, UnitOfWork parent)
InternalProcessor
InternalProcessorFactory. addUnitOfWorkProcessorAdvice(CamelContext camelContext, Processor processor, Route route)
void
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 processingCompletableFuture<Exchange>
ProducerCache. 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 exchangevoid
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.AsyncCallback
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.Consumer
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 servicesConsumer
RestConsumerFactory. 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 processorProcessor
ModelReifierFactory. createErrorHandler(Route route, ErrorHandlerFactory errorHandlerFactory, Processor processor)
Processor
ModelReifierFactory. createErrorHandler(Route route, Processor processor)
CamelEvent
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 ..CamelEvent
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 ..Endpoint
InterceptEndpointFactory. createInterceptSendToEndpoint(CamelContext camelContext, Endpoint endpoint, boolean skip, Processor before, Processor after)
Creates an endpoint when intercepting sending to an endpoint (detour).ManagementInterceptStrategy.InstrumentationProcessor<?>
ManagementInterceptStrategy. createProcessor(NamedNode definition, Processor target)
AsyncProcessor
InternalProcessorFactory. createWrapProcessor(Processor processor, Processor wrapped)
Object
ManagementObjectStrategy. getManagedObjectForProcessor(CamelContext context, Processor processor, NamedNode definition, Route route)
ObjectName
ManagementObjectNameStrategy. getObjectNameForProcessor(CamelContext context, Processor processor, NamedNode definition)
ObjectName
ManagementObjectNameStrategy. getObjectNameForStep(CamelContext context, Processor processor, NamedNode definition)
boolean
Condition. matchProcess(Exchange exchange, Processor processor, NamedNode definition)
Does the condition matchProcessorExchangeFactory
ProcessorExchangeFactory. 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 APIExchange
ProducerCache. send(Endpoint endpoint, Exchange exchange, Processor resultProcessor)
Sends the exchange to the given endpoint.void
InterceptSendToEndpoint. setAfter(Processor after)
Sets the processor (optional) for routing after sending to the original endpoint.void
InterceptSendToEndpoint. setBefore(Processor before)
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)
Processor
Policy. wrap(Route route, Processor processor)
Wraps any applicable interceptors around the given processor.Processor
InterceptStrategy. wrapProcessorInInterceptors(CamelContext context, NamedNode definition, Processor target, Processor nextTarget)
Give implementor an opportunity to wrap the target processor in a route.
-