KafkaProperties

@ConfigurationProperties(prefix = "wow.kafka")
class KafkaProperties(@DefaultValue(value = ["true"]) var enabled: Boolean = true, var bootstrapServers: List<String>, @DefaultValue(value = ["wow."]) var topicPrefix: String = Wow.WOW_PREFIX, var properties: Map<String, String> = mapOf(), var producer: Map<String, String> = mapOf(), var consumer: Map<String, String> = mapOf(), var receiver: KafkaReceiverProperties = KafkaReceiverProperties(), var closeTimeout: Duration? = null) : EnabledCapable

Constructors

Link copied to clipboard
constructor(@DefaultValue(value = ["true"]) enabled: Boolean = true, bootstrapServers: List<String>, @DefaultValue(value = ["wow."]) topicPrefix: String = Wow.WOW_PREFIX, properties: Map<String, String> = mapOf(), producer: Map<String, String> = mapOf(), consumer: Map<String, String> = mapOf(), receiver: KafkaReceiverProperties = KafkaReceiverProperties(), closeTimeout: Duration? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

How long closing a producer may wait to flush its buffered records. Unset, the starter uses wow.shutdown-timeout, so a close never outlasts the runtime's shutdown deadline (the Kafka client's own default waits without bound).

Link copied to clipboard
Link copied to clipboard
open override var enabled: Boolean
Link copied to clipboard
Link copied to clipboard

common properties

Link copied to clipboard
@NestedConfigurationProperty
var receiver: KafkaReceiverProperties
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun buildReceiverOptions(): ReceiverOptions<String, String>
Link copied to clipboard
fun buildSenderOptions(defaultCloseTimeout: Duration? = null): SenderOptions<String, String>

The producer options: string serializers, properties then producer, and closeTimeout, else defaultCloseTimeout when given.