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.
@FunctionalInterface public interface Processor
A processor is used to implement the Event Driven Consumer and Message Translator patterns and to process message exchanges. Notice if you use aProcessor
in a Camel route, then make sure to write theProcessor
in a thread-safe way, as the Camel routes can potentially be executed by concurrent threads, and therefore multiple threads can call the sameProcessor
instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
process(Exchange exchange)
Processes the message exchange
-