Skip to content

Instantly share code, notes, and snippets.

@ankitthakur
Last active September 3, 2018 13:31
Show Gist options
  • Save ankitthakur/4c905a4f380d5ae020b02b9dabbda386 to your computer and use it in GitHub Desktop.
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
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