Class ObservableCqlSessionFactory

java.lang.Object
org.springframework.data.cassandra.observability.ObservableCqlSessionFactory

public final class ObservableCqlSessionFactory extends Object
Factory to wrap a CqlSession with a CqlSessionObservationInterceptor.
Since:
4.0
Author:
Mark Paluch, Greg Turnquist
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.datastax.oss.driver.api.core.CqlSession
    wrap(com.datastax.oss.driver.api.core.CqlSession session, io.micrometer.observation.ObservationRegistry observationRegistry)
    Wrap the CqlSession with a CqlSessionObservationInterceptor.
    static com.datastax.oss.driver.api.core.CqlSession
    wrap(com.datastax.oss.driver.api.core.CqlSession session, String remoteServiceName, io.micrometer.observation.ObservationRegistry observationRegistry)
    Wrap the CqlSession with a CqlSessionObservationInterceptor.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • wrap

      public static com.datastax.oss.driver.api.core.CqlSession wrap(com.datastax.oss.driver.api.core.CqlSession session, io.micrometer.observation.ObservationRegistry observationRegistry)
      Wrap the CqlSession with a CqlSessionObservationInterceptor.
      Parameters:
      session - must not be null.
      observationRegistry - must not be null.
      Returns:
    • wrap

      public static com.datastax.oss.driver.api.core.CqlSession wrap(com.datastax.oss.driver.api.core.CqlSession session, String remoteServiceName, io.micrometer.observation.ObservationRegistry observationRegistry)
      Wrap the CqlSession with a CqlSessionObservationInterceptor.
      Parameters:
      session - must not be null.
      remoteServiceName - must not be null.
      observationRegistry - must not be null.
      Returns: