bootique-jdbc-hikaricp-instrumented/src/main/java/io/bootique/jdbc/instrumented/hikaricp/healthcheck/HikariCPConnectivityCheck.java
@Override
    public HealthCheckOutcome check() {

        HealthCheckOutcome warningOutcome = checkThreshold(ThresholdType.WARNING, HealthCheckOutcome::warning);

        switch (warningOutcome.getStatus()) {
            case WARNING:
                return warningOutcome;
            case UNKNOWN:
                return checkThreshold(ThresholdType.CRITICAL, HealthCheckOutcome::critical);
        }

        return HealthCheckOutcome.ok();
    }
/**
     * The health check obtains a {@link Connection} from the pool and immediately return it.
     * The standard HikariCP internal "aliveness" check will be run.
     *
     * @return {@link HealthCheckOutcome#ok()} if an "alive" {@link Connection} can be obtained,
     * otherwise {@link HealthCheckOutcome#critical()} if the connection fails or times out
     */
The health check obtains a  Connection from the pool and immediately return it.
The standard HikariCP internal "aliveness" check will be run.

@return  HealthCheckOutcome#ok() if an "alive"  Connection can be obtained,
otherwise  HealthCheckOutcome#critical() if the connection fails or times out
The health check obtains a Connection from the pool and immediately return it . The standard HikariCP internal " aliveness " check will be run . @return HealthCheckOutcome#ok () if an " alive " Connection can be obtained otherwise HealthCheckOutcome#critical () if the connection fails or times out
@Override
    public HealthCheckOutcome check() {
        HealthCheckOutcome warningOutcome = checkThreshold(ThresholdType.WARNING, HealthCheckOutcome::warning);
        switch (warningOutcome.getStatus()) {
            case WARNING:
                return warningOutcome;
            case UNKNOWN:
                return checkThreshold(ThresholdType.CRITICAL, HealthCheckOutcome::critical);
        }
        return HealthCheckOutcome.ok();
    }
@ Override public HealthCheckOutcome check ( ) { HealthCheckOutcome warningOutcome = checkThreshold ( ThresholdType . WARNING , HealthCheckOutcome :: warning ) ; switch ( warningOutcome . getStatus ( ) ) { case WARNING : return warningOutcome ; case UNKNOWN : return checkThreshold ( ThresholdType . CRITICAL , HealthCheckOutcome :: critical ) ; } return HealthCheckOutcome . ok ( ) ; }
The health check obtains a {@link Connection} from the pool and immediately return it.
The health check obtains a { @link Connection } from the pool and immediately return it .