Created
June 11, 2021 21:10
-
-
Save diogodanielsoaresferreira/c008156c4f83f1e3c6e7b7aaf90b9546 to your computer and use it in GitHub Desktop.
Camel Routes - Step 5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//... | |
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