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

    Constructors
    Modifier
    Constructor
    Description
    protected
    CassandraMetricsBinder(io.micronaut.context.BeanProvider<io.micrometer.core.instrument.MeterRegistry> meterRegistryProvider)
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.datastax.oss.driver.api.core.CqlSessionBuilder
    onCreated(@NonNull io.micronaut.context.event.BeanCreatedEvent<com.datastax.oss.driver.api.core.CqlSessionBuilder> event)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface io.micronaut.context.event.BeanCreatedEventListener<com.datastax.oss.driver.api.core.CqlSessionBuilder>