Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: typo

...

Info

Please note that this aggregation strategy requires eager completion check to work properly.

 

In this example we aggregate all text files found in the input directory into a singel single Zip file that is stored in the output directory. 

Code Block
   from("file:input/directory?antInclude=*/.txt")
     .aggregate(new ZipAggregationStrategy())
       .constant(true)
       .completionFromBatchConsumer()
       .eagerCheckCompletion()
   .to("file:output/directory");

 

...