Converts a code block to a com.codahale.metrics.health.HealthCheck and registers it.
the name of the health check
the unhealthy message for checkers that return
false, defaults to
"Health check failed"
the code block that does the health check
The base name for all metrics created from this builder.
The MetricRegistry where created metrics are registered.
The MetricBuilder that can be used for creating timers, counters, etc.
The com.codahale.metrics.health.HealthCheckRegistry where created metrics are registered.