Class KafkaProducerMetrics
java.lang.Object
io.micronaut.configuration.kafka.metrics.AbstractKafkaMetrics<AbstractKafkaProducerConfiguration>
io.micronaut.configuration.kafka.metrics.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 Summary
ModifierConstructorDescriptionprotected
KafkaProducerMetrics
(io.micronaut.context.BeanLocator beanLocator) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptiononCreated
(io.micronaut.context.event.BeanCreatedEvent<AbstractKafkaProducerConfiguration> event) Methods inherited from class io.micronaut.configuration.kafka.metrics.AbstractKafkaMetrics
addKafkaMetrics, addKafkaMetrics
-
Constructor Details
-
KafkaProducerMetrics
protected KafkaProducerMetrics(io.micronaut.context.BeanLocator beanLocator) Default constructor.- Parameters:
beanLocator
- The bean locator
-
-
Method Details
-
onCreated
public AbstractKafkaProducerConfiguration onCreated(io.micronaut.context.event.BeanCreatedEvent<AbstractKafkaProducerConfiguration> event) - Specified by:
onCreated
in interfaceio.micronaut.context.event.BeanCreatedEventListener<AbstractKafkaProducerConfiguration>
-