Class CassandraReadinessCheck

  • All Implemented Interfaces:
    org.eclipse.microprofile.health.HealthCheck

    @Readiness
    @ApplicationScoped
    public class CassandraReadinessCheck
    extends Object
    implements org.eclipse.microprofile.health.HealthCheck
    Check the health of the cassandra connection.
    • Constructor Detail

      • CassandraReadinessCheck

        public CassandraReadinessCheck()
        For use with RESTeasy and CDI proxies.
        API Note:
        This construtor is used by CDI runtimes that require a public, no-argument constructor. It should not be invoked directly in user code.
      • CassandraReadinessCheck

        @Inject
        public CassandraReadinessCheck​(CqlSession session)
        Create a cassandra connection health checker.
        Parameters:
        session - the cassandra session
    • Method Detail

      • call

        public org.eclipse.microprofile.health.HealthCheckResponse call()
        Specified by:
        call in interface org.eclipse.microprofile.health.HealthCheck