Class KafkaConsumerConfiguration<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.consumers", primary="default") @Requires(beans=KafkaDefaultConfiguration.class) public class KafkaConsumerConfiguration<K,V> extends AbstractKafkaConsumerConfiguration<K,V>
Configuration for Apache Kafka Consumer. See https://kafka.apache.org/documentation/#consumerconfigs
Since:
1.0
Author:
Iván López, Graeme Rocher
  • Field Details

  • Constructor Details

    • KafkaConsumerConfiguration

      public KafkaConsumerConfiguration(@Parameter String consumerName, KafkaDefaultConfiguration defaultConfiguration, io.micronaut.context.env.Environment environment)
      Construct a new KafkaConsumerConfiguration for the given defaults.
      Parameters:
      consumerName - The name of the consumer
      defaultConfiguration - The default configuration
      environment - The environment