All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.thake.kafka.avro4k.serializer.KafkaAvro4kDeserializerConfig.kt Maven / Gradle / Ivy

There is a newer version: 0.14.0
Show newest version
package com.github.thake.kafka.avro4k.serializer

import org.apache.kafka.common.config.ConfigDef


class KafkaAvro4kDeserializerConfig(props: Map) : AbstractKafkaAvro4kSerDeConfig(
    baseConfigDef().define(
        RECORD_PACKAGES,
        ConfigDef.Type.STRING,
        null,
        ConfigDef.Importance.HIGH,
        "The packages in which record types annotated with @AvroName, @AvroAlias and @AvroNamespace can be found. Packages are separated by a colon ','."
    ), props
) {
    fun getRecordPackages() = getString(RECORD_PACKAGES)?.split(",")?.map { it.trim() }?.toList() ?: emptyList()

    companion object {
        const val RECORD_PACKAGES = "record.packages"
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy