KafkaListener

class KafkaListener<Key, Value>(topicNames: List<String>, properties: KafkaListenerProperties<Key, Value>, pollDuration: Duration = Duration.ofMillis(100), processor: suspend (ConsumerRecord<Key, Value>) -> Unit) : AutoCloseable

Constructors

Link copied to clipboard
constructor(topicNames: List<String>, properties: KafkaListenerProperties<Key, Value>, pollDuration: Duration = Duration.ofMillis(100), processor: suspend (ConsumerRecord<Key, Value>) -> Unit)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
suspend fun run(): Job