Class CamelItemProcessor<I,O>

java.lang.Object
org.apache.camel.component.spring.batch.support.CamelItemProcessor<I,O>
All Implemented Interfaces:
org.springframework.batch.item.ItemProcessor<I,O>

public class CamelItemProcessor<I,O> extends Object implements org.springframework.batch.item.ItemProcessor<I,O>
Spring Batch ItemProcessor sending synchronous request to the given Camel endpoint. The actual processing of the item is delegated to the Camel routes.
  • Constructor Details

    • CamelItemProcessor

      public CamelItemProcessor(org.apache.camel.ProducerTemplate producerTemplate, String endpointUri)
  • Method Details

    • process

      public O process(I i) throws Exception
      Specified by:
      process in interface org.springframework.batch.item.ItemProcessor<I,O>
      Throws:
      Exception