Class CassandraDriverHealthIndicator

java.lang.Object
org.springframework.boot.health.contributor.AbstractHealthIndicator
org.springframework.boot.cassandra.health.CassandraDriverHealthIndicator
All Implemented Interfaces:
org.springframework.boot.health.contributor.HealthContributor, org.springframework.boot.health.contributor.HealthIndicator

public class CassandraDriverHealthIndicator extends org.springframework.boot.health.contributor.AbstractHealthIndicator
Simple implementation of a HealthIndicator returning status information for Cassandra data stores.
Since:
4.0.0
  • Constructor Details

    • CassandraDriverHealthIndicator

      public CassandraDriverHealthIndicator(com.datastax.oss.driver.api.core.CqlSession session)
      Create a new CassandraDriverHealthIndicator instance.
      Parameters:
      session - the CqlSession.
  • Method Details

    • doHealthCheck

      protected void doHealthCheck(org.springframework.boot.health.contributor.Health.Builder builder) throws Exception
      Specified by:
      doHealthCheck in class org.springframework.boot.health.contributor.AbstractHealthIndicator
      Throws:
      Exception