The pulled files are processed one by one, so you camel route doesn't know who many files are processed.
But you should be able to access the Exchange property like
Exchange.BATCH_INDEX, Exchange.BATCH_SIZE, Exchange.BATCH_COMPLETE in the onCompletion method.
Then you can write some log for it.
On Thursday, December 20, 2012 at 5:24 AM, Olivier Ziller wrote:
> i have a route that reads a directory and process a number of files
> contained in this directory.
> i would like to log the number of files at the end of the processing of
> the directory.
> i tried to use oncompletion but it's called for each file.
> any idea on how to do that?
> thanks in advance