TopicDefinition

interface TopicDefinition<K, V>

A definition for any Kafka topic.

These can be used to create KTopics, KTabless, or GlobalKTabless.

Inheritors

Functions

Link copied to clipboard
fun <K, V> TopicDefinition<K, V>.consumeAsKStream(builder: StreamsBuilder, consumer: Consumed<K, V> = serdes.consumer("${pid}.input-stream")): KStream<K, V>
Link copied to clipboard
fun <K, V> TopicDefinition<K, V>.consumeAsKTable(builder: StreamsBuilder, consumer: Consumed<K, V> = serdes.consumer("${pid}.input-table")): KTable<K, V>

Properties

Link copied to clipboard
open val pid: String

unique Kafka processor ID - to help ensure topology names are unique

Link copied to clipboard
abstract val serdes: KeyValueSerdes<K, V>
Link copied to clipboard
abstract val topicName: String