@RequiresMetrics @Requires(property="micronaut.metrics.binders.kafka.enabled", value="true", defaultValue="true") @Context @Primary public class KafkaProducerMetrics extends java.lang.Object implements io.micronaut.context.event.BeanCreatedEventListener<AbstractKafkaProducerConfiguration>, java.lang.AutoCloseable
Modifier | Constructor and Description |
---|---|
protected |
KafkaProducerMetrics(io.micronaut.context.BeanLocator beanLocator)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
AbstractKafkaProducerConfiguration |
onCreated(io.micronaut.context.event.BeanCreatedEvent<AbstractKafkaProducerConfiguration> event) |
protected KafkaProducerMetrics(io.micronaut.context.BeanLocator beanLocator)
beanLocator
- The bean locatorpublic AbstractKafkaProducerConfiguration onCreated(io.micronaut.context.event.BeanCreatedEvent<AbstractKafkaProducerConfiguration> event)
onCreated
in interface io.micronaut.context.event.BeanCreatedEventListener<AbstractKafkaProducerConfiguration>
@PreDestroy public void close()
close
in interface java.lang.AutoCloseable