Skip to content

Instantly share code, notes, and snippets.

@diogodanielsoaresferreira
Created June 11, 2021 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diogodanielsoaresferreira/c008156c4f83f1e3c6e7b7aaf90b9546 to your computer and use it in GitHub Desktop.
Save diogodanielsoaresferreira/c008156c4f83f1e3c6e7b7aaf90b9546 to your computer and use it in GitHub Desktop.
Camel Routes - Step 5
//...
from("kafka:input_topic?brokers=localhost:9092&groupId=group2")
.unmarshal().json(UserMessage.class)
.aggregate(simple("${body.emitter}"), new CombinedUserMessagesAggregationStrategy())
.completionInterval(5000)
.log("${body}");
//...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment