You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Batch Consumer

Available as of Camel 2.0

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 org.apache.camel.BatchConsumer interface that a consumer can implement to indicate it support 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 properties is set on the Exchange for each Exchange polled in the same batch.

Property

Description

CamelBatchSize

The total number of Exchanges that was polled in this batch.

CamelBatchIndex

The current index of the batch. Starts from 0.

CamelBatchComplete

A boolean indicating the last Exchange in the batch. Is only true for the last entry.

See Also

  • No labels