java.lang.Object
io.helidon.dbclient.health.DbClientHealthCheck
- All Implemented Interfaces:
HealthCheck
Database health check.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DbClientHealthCheck.Builder
A fluent API builder to create a fully customized database health check.call()
static DbClientHealthCheck
Create a health check with configured settings for the database.protected DbClient
dbClient()
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 providedConfig
node.- Parameters:
dbClient
- database client used to execute health check statementconfig
-Config
node 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:
Awaitable
instance to wait for
-
call
- Specified by:
call
in interfaceHealthCheck
-
dbClient
-