Class DefaultKafkaProducerConfiguration<K,V>

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

@Requires(missingProperty="kafka.producers.default") @Requires(beans=KafkaDefaultConfiguration.class) @Primary @Prototype public class DefaultKafkaProducerConfiguration<K,V> extends AbstractKafkaProducerConfiguration<K,V>
The default KafkaProducer configuration when no default is specified.
  • Constructor Details

    • DefaultKafkaProducerConfiguration

      @Inject public DefaultKafkaProducerConfiguration(KafkaDefaultConfiguration defaultConfiguration)
      Constructs a new instance.
      Parameters:
      defaultConfiguration - The default Kafka configuration
    • DefaultKafkaProducerConfiguration

      public DefaultKafkaProducerConfiguration(AbstractKafkaConfiguration defaultConfiguration)
      Construct a new KafkaConsumerConfiguration for the given defaults.
      Parameters:
      defaultConfiguration - The default configuration