BatchConsumerBatch Consumer
Available as of Camel 2.0
BatchConsumer Batch Consumer is basically a Polling Consumer that is capable of polling multiple Exchanges in a pool. What we have done in Camel 2.0 is to standardize this into a The interface org.apache.camel.BatchConsumer
interface that should be implemented by a consumer can implement to indicate that it support supports batching as well.
At this time of writing the following components have this implementation
Some other components is also batch capable but we haven't migrated them yet.
Exchange Properties
...
The following components support the use of a Batch Consumer:
Consumer Options
Option | Description |
---|---|
| 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. |
Exchange Properties
The following properties is set on the Exchange for each Exchange polled in the same batch.
Property | Description |
---|---|
| A |
| The current index of the batch. Starts from |
| The total number of Exchanges that was polled in this batch. |