Last active
September 3, 2018 13:31
-
-
Save ankitthakur/4c905a4f380d5ae020b02b9dabbda386 to your computer and use it in GitHub Desktop.
Kafka Producer stream interface, which will be used to write to the topic
This file contains hidden or 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
| package com.thakur.kafkaserver.config | |
| import org.springframework.cloud.stream.annotation.Output | |
| import org.springframework.messaging.MessageChannel | |
| interface KafkaServerStreams { | |
| @Output(PRODUCER_STREAM) | |
| fun producerChannel(): MessageChannel | |
| companion object { | |
| const val PRODUCER_STREAM = "kafkatopic1" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment