java.lang.Object
io.helidon.dbclient.health.DbClientHealthCheck
- All Implemented Interfaces:
HealthCheck
Database health check.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic DbClientHealthCheck.BuilderA fluent API builder to create a fully customized database health check.call()static DbClientHealthCheckCreate a health check with configured settings for the database.protected DbClientdbClient()protected abstract Awaitable<?>execPing()Execute the ping statement.
-
Method Details
-
create
Create a health check with configured settings for the database. This health check will execute health check as defined in providedConfignode.- Parameters:
dbClient- database client used to execute health check statementconfig-Confignode with health check configuration- Returns:
- health check that can be used with
HealthSupport.Builder.addReadiness(org.eclipse.microprofile.health.HealthCheck...)orHealthSupport.Builder.addLiveness(org.eclipse.microprofile.health.HealthCheck...)
-
builder
A fluent API builder to create a fully customized database health check.- Parameters:
dbClient- database- Returns:
- a new builder
-
execPing
Execute the ping statement.- Returns:
Awaitableinstance to wait for
-
call
- Specified by:
callin interfaceHealthCheck
-
dbClient
-