Class CassandraLivenessCheck

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

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

      • CassandraLivenessCheck

        public CassandraLivenessCheck()
        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.
      • CassandraLivenessCheck

        @Inject
        public CassandraLivenessCheck​(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