Class KafkaProducerMetrics

All Implemented Interfaces:
io.micronaut.context.event.BeanCreatedEventListener<AbstractKafkaProducerConfiguration>, EventListener

@RequiresMetrics @Requires(property="micronaut.metrics.binders.kafka.enabled", value="true", defaultValue="true") @Context @Primary public class KafkaProducerMetrics extends AbstractKafkaMetrics<AbstractKafkaProducerConfiguration> implements io.micronaut.context.event.BeanCreatedEventListener<AbstractKafkaProducerConfiguration>
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • KafkaProducerMetrics

      protected KafkaProducerMetrics(io.micronaut.context.BeanLocator beanLocator)
      Default constructor.
      Parameters:
      beanLocator - The bean locator
    • KafkaProducerMetrics

      @Inject protected KafkaProducerMetrics(io.micronaut.context.BeanLocator beanLocator, KafkaMetricsConfigurationProperties kafkaMetricsConfiguration)
      Default constructor.
      Parameters:
      beanLocator - The bean locator
      kafkaMetricsConfiguration - The Kafka metrics configuration
  • Method Details