Skip to content

Instantly share code, notes, and snippets.

@mchmielarz
Created December 15, 2020 10:25
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 mchmielarz/606da311bda018eee58e544a01d04120 to your computer and use it in GitHub Desktop.
Save mchmielarz/606da311bda018eee58e544a01d04120 to your computer and use it in GitHub Desktop.
Consumer
.plainSource(consumerSettings, Subscriptions.topics(topicName))
.map(consumerRecord -> {
// processing logic comes here
return consumerRecord;
})
.runWith(Sink.ignore(), materializer)
.toCompletableFuture()
.handle(AppSupport.doneHandler())
.join();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment