Class CodahaleHealthChecker


  • public final class CodahaleHealthChecker
    extends Object
    Provides Dropwizard HealthChecks. Two health checks are provided:
    • ConnectivityCheck
    • Connection99Percent
    The ConnectivityCheck will use the connectionTimeout, unless the health check property connectivityCheckTimeoutMs is defined. However, if either the connectionTimeout or the connectivityCheckTimeoutMs is 0 (infinite), a timeout of 10 seconds will be used.

    The Connection99Percent health check will only be registered if the health check property expected99thPercentileMs is defined and greater than 0.

    Author:
    Brett Wooldridge
    • Method Detail

      • registerHealthChecks

        public static void registerHealthChecks​(HikariPool pool,
                                                HikariConfig hikariConfig,
                                                com.codahale.metrics.health.HealthCheckRegistry registry)
        Register Dropwizard health checks.
        Parameters:
        pool - the pool to register health checks for
        hikariConfig - the pool configuration
        registry - the HealthCheckRegistry into which checks will be registered