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 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

    Modifier and Type
    Method
    Description
    void
    process(Exchange exchange)
    Processes the message exchange
  • Method Details

    • process

      void process(Exchange exchange) throws Exception
      Processes the message exchange
      Parameters:
      exchange - the message exchange
      Throws:
      Exception - if an internal processing error has occurred.