Class CodahaleHealthChecker
- java.lang.Object
-
- com.zaxxer.hikari.metrics.dropwizard.CodahaleHealthChecker
-
public final class CodahaleHealthChecker extends Object
Provides Dropwizard HealthChecks. Two health checks are provided:- ConnectivityCheck
- Connection99Percent
connectionTimeout, unless the health check propertyconnectivityCheckTimeoutMsis defined. However, if either theconnectionTimeoutor theconnectivityCheckTimeoutMsis 0 (infinite), a timeout of 10 seconds will be used.The Connection99Percent health check will only be registered if the health check property
expected99thPercentileMsis defined and greater than 0.- Author:
- Brett Wooldridge
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidregisterHealthChecks(HikariPool pool, HikariConfig hikariConfig, com.codahale.metrics.health.HealthCheckRegistry registry)Register Dropwizard health checks.
-
-
-
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 forhikariConfig- the pool configurationregistry- the HealthCheckRegistry into which checks will be registered
-
-