Created
December 15, 2020 10:25
-
-
Save mchmielarz/606da311bda018eee58e544a01d04120 to your computer and use it in GitHub Desktop.
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
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