Skip to content

Instantly share code, notes, and snippets.

@diogodanielsoaresferreira
Created June 11, 2021 21:37
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/3e1ab2d97d959d852f8585242d2a0448 to your computer and use it in GitHub Desktop.
Save diogodanielsoaresferreira/3e1ab2d97d959d852f8585242d2a0448 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, "createUserMessages")
.log("${body}");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment