Available as of Camel 2.0
Batch Consumer is basically a Polling Consumer that is capable of polling multiple Exchanges in a pool. The interface
org.apache.camel.BatchConsumer should be implemented by a consumer to indicate that it supports batching.
The following components support the use of a Batch Consumer:
An integer to define a maximum messages to gather per poll. By default no maximum is set. Can be used to set a limit of e.g.
The current index of the batch. Starts from
The total number of Exchanges that was polled in this batch.