Package org.trellisldp.jdbc
Class DBHealthCheck
- java.lang.Object
-
- org.trellisldp.jdbc.DBHealthCheck
-
- All Implemented Interfaces:
org.eclipse.microprofile.health.HealthCheck
@Liveness @Readiness @ApplicationScoped public class DBHealthCheck extends Object implements org.eclipse.microprofile.health.HealthCheck
Check the health of the database connection.
-
-
Constructor Summary
Constructors Constructor Description DBHealthCheck()
For use with RESTeasy and CDI proxies.DBHealthCheck(DataSource dataSource)
Create a db connection health checker.
-
-
-
Constructor Detail
-
DBHealthCheck
public DBHealthCheck()
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.
-
DBHealthCheck
@Inject public DBHealthCheck(DataSource dataSource)
Create a db connection health checker.- Parameters:
dataSource
- the datasource
-
-