December 2013
Intermediate to advanced
424 pages
9h 7m
English
Aggregation according to size or predicate as described in the Aggregating related messages recipe is an excellent foundation for batching messages together. This recipe will describe how to use intervals to release an aggregated message per specified period.
The Java code for this recipe is located in the org.camelcookbook.splitjoin.aggregateinterval package. The Spring XML example is located in src/main/resources/META-INF/spring/aggregateCompletionInterval-context.xml.
Inside your Aggregator definition, define a completionInterval attribute containing a period in milliseconds. The attribute can be used as the sole aggregation condition, or in combination with others.
In the XML DSL, this is ...
Read now
Unlock full access