Package io.micronaut.cassandra.metrics
Class CassandraMetricsBinder
java.lang.Object
io.micronaut.cassandra.metrics.CassandraMetricsBinder
- All Implemented Interfaces:
io.micronaut.context.event.BeanCreatedEventListener<com.datastax.oss.driver.api.core.CqlSessionBuilder>
,EventListener
@RequiresMetrics
@Requires(beans=com.datastax.oss.driver.api.core.CqlSessionBuilder.class)
@Singleton
public class CassandraMetricsBinder
extends Object
implements io.micronaut.context.event.BeanCreatedEventListener<com.datastax.oss.driver.api.core.CqlSessionBuilder>
Binds Micronaut Micrometer to Cassandra `CqlSessionBuilder`.
- Since:
- 6.1.0
- Author:
- Dean Wette
-
Constructor Summary
ModifierConstructorDescriptionprotected
CassandraMetricsBinder
(io.micronaut.context.BeanProvider<io.micrometer.core.instrument.MeterRegistry> meterRegistryProvider) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptioncom.datastax.oss.driver.api.core.CqlSessionBuilder
onCreated
(@NonNull io.micronaut.context.event.BeanCreatedEvent<com.datastax.oss.driver.api.core.CqlSessionBuilder> event)
-
Constructor Details
-
CassandraMetricsBinder
protected CassandraMetricsBinder(io.micronaut.context.BeanProvider<io.micrometer.core.instrument.MeterRegistry> meterRegistryProvider) Default constructor.- Parameters:
meterRegistryProvider
- The meter registry.
-
-
Method Details
-
onCreated
public com.datastax.oss.driver.api.core.CqlSessionBuilder onCreated(@NonNull @NonNull io.micronaut.context.event.BeanCreatedEvent<com.datastax.oss.driver.api.core.CqlSessionBuilder> event) - Specified by:
onCreated
in interfaceio.micronaut.context.event.BeanCreatedEventListener<com.datastax.oss.driver.api.core.CqlSessionBuilder>
-