This component implements the Batch Consumer .
As the file consumer is BatchConsumer
it supports batching the files it
polls. By batching it means that Camel will add some properties to the Exchange so you know the
number of files polled, and the current index, in that order.
Property |
Description |
---|---|
|
The total number of files that was polled in this batch. |
|
The current index of the batch. Starts from 0. |
|
A |
This would allow you, for example, to know how many files exist in the batch and use that information to let the Aggregator aggregate that precise number of files.