Class AbstractKafkaConfiguration<K,V>

java.lang.Object
io.micronaut.configuration.kafka.config.AbstractKafkaConfiguration<K,V>
Type Parameters:
K - The key deserializer type
V - The value deserializer type
All Implemented Interfaces:
io.micronaut.core.util.Toggleable
Direct Known Subclasses:
AbstractKafkaConsumerConfiguration, AbstractKafkaProducerConfiguration, AbstractKafkaStreamsConfiguration, KafkaDefaultConfiguration

public abstract class AbstractKafkaConfiguration<K,V> extends Object implements io.micronaut.core.util.Toggleable
An abstract Kafka configuration class.
Since:
1.0
Author:
Graeme Rocher
  • Field Details

  • Constructor Details

    • AbstractKafkaConfiguration

      protected AbstractKafkaConfiguration(Properties config)
      Constructs a new instance.
      Parameters:
      config - The config to use
  • Method Details

    • toKafkaProperties

      protected static Properties toKafkaProperties(io.micronaut.context.env.Environment environment, Map<?,?> values)
      Convert the given map of values to kafka properties.
      Parameters:
      environment - The env
      values - The values
      Returns:
      The kafka properties
    • getConfig

      @NonNull public @NonNull Properties getConfig()
      Returns:
      The Kafka configuration