Skip to content

Instantly share code, notes, and snippets.

@diogodanielsoaresferreira
Created June 11, 2021 21:19
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/c70e621d4ef00bd4b05d8674397365f5 to your computer and use it in GitHub Desktop.
Save diogodanielsoaresferreira/c70e621d4ef00bd4b05d8674397365f5 to your computer and use it in GitHub Desktop.
Camel Routes - Step 6
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