package com.codahale.metrics.health;

A filter used to determine whether or not a health check should be reported.
/** * A filter used to determine whether or not a health check should be reported. */
@FunctionalInterface public interface HealthCheckFilter {
Matches all health checks, regardless of type or name.
/** * Matches all health checks, regardless of type or name. */
HealthCheckFilter ALL = (name, healthCheck) -> true;
Returns true if the health check matches the filter; false otherwise.
Params:
  • name – the health check's name
  • healthCheck – the health check
Returns:true if the health check matches the filter
/** * Returns {@code true} if the health check matches the filter; {@code false} otherwise. * * @param name the health check's name * @param healthCheck the health check * @return {@code true} if the health check matches the filter */
boolean matches(String name, HealthCheck healthCheck); }