Package org.apache.camel
Interface Processor
- All Known Subinterfaces:
AsyncProcessor
,AsyncProducer
,Channel
,DelegateProcessor
,ErrorHandler
,InternalProcessor
,ManagementInterceptStrategy.InstrumentationProcessor<T>
,Producer
,SharedInternalProcessor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A processor is used to implement the
Event Driven Consumer and
Message Translator patterns and to process message
exchanges.
Notice if you use a
Processor
in a Camel route, then make sure to write the Processor
in a
thread-safe way, as the Camel routes can potentially be executed by concurrent threads, and therefore multiple
threads can call the same Processor
instance.-
Method Summary
-
Method Details
-
process
Processes the message exchange- Parameters:
exchange
- the message exchange- Throws:
Exception
- if an internal processing error has occurred.
-