Class KafkaProducerConfiguration<K,V>

Type Parameters:
K - The key deserializer type
V - The value deserializer type
All Implemented Interfaces:
io.micronaut.core.util.Toggleable

@EachProperty(value="kafka.producers", primary="default") @Requires(beans=KafkaDefaultConfiguration.class) public class KafkaProducerConfiguration<K,V> extends AbstractKafkaProducerConfiguration<K,V>
Configuration for Apache Kafka Producer. See https://kafka.apache.org/documentation.html#producerconfigs
Since:
1.0
Author:
Iván López, Graeme Rocher
  • Field Details

  • Constructor Details

    • KafkaProducerConfiguration

      public KafkaProducerConfiguration(@Parameter String producerName, KafkaDefaultConfiguration defaultConfiguration, io.micronaut.context.env.Environment environment)
      Constructs the default producer configuration.
      Parameters:
      producerName - The name of the producer
      defaultConfiguration - The default Kafka configuration
      environment - The environment