Created
June 11, 2021 21:19
-
-
Save diogodanielsoaresferreira/c70e621d4ef00bd4b05d8674397365f5 to your computer and use it in GitHub Desktop.
Camel Routes - Step 6
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) | |
.bean(NLPUtils.class, "createTranscription") | |
.log("${body}"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment