Skip to content

Instantly share code, notes, and snippets.

@diogodanielsoaresferreira
Created June 11, 2021 21:10
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