Class KafkaDefaultConfiguration

java.lang.Object
io.micronaut.configuration.kafka.config.AbstractKafkaConfiguration
io.micronaut.configuration.kafka.config.KafkaDefaultConfiguration
All Implemented Interfaces:
io.micronaut.core.util.Toggleable

@ConfigurationProperties("kafka") @Requires(property="kafka") @Requires(property="kafka.enabled",notEquals="false") public class KafkaDefaultConfiguration extends AbstractKafkaConfiguration
The default Kafka configuration to apply to both the consumer and the producer, but can be overridden by either.
Since:
1.0
Author:
Graeme Rocher
  • Field Details

    • DEFAULT_HEALTHTIMEOUT

      public static final int DEFAULT_HEALTHTIMEOUT
      The default health timeout value.
      See Also:
  • Constructor Details

    • KafkaDefaultConfiguration

      public KafkaDefaultConfiguration(io.micronaut.context.env.Environment environment)
      Constructs the default Kafka configuration.
      Parameters:
      environment - The environment
  • Method Details

    • getHealthTimeout

      public Duration getHealthTimeout()
      The health check timeout.
      Returns:
      The duration
    • setHealthTimeout

      public void setHealthTimeout(Duration healthTimeout)
      The health check timeout. Default value (10 seconds).
      Parameters:
      healthTimeout - The duration