Package com.codahale.metrics.health
Interface HealthCheckFilter
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface HealthCheckFilter
A filter used to determine whether or not a health check should be reported.
-
-
Field Summary
Fields Modifier and Type Field Description static HealthCheckFilter
ALL
Matches all health checks, regardless of type or name.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
matches(String name, HealthCheck healthCheck)
Returnstrue
if the health check matches the filter;false
otherwise.
-
-
-
Field Detail
-
ALL
static final HealthCheckFilter ALL
Matches all health checks, regardless of type or name.
-
-
Method Detail
-
matches
boolean matches(String name, HealthCheck healthCheck)
Returnstrue
if the health check matches the filter;false
otherwise.- Parameters:
name
- the health check's namehealthCheck
- the health check- Returns:
true
if the health check matches the filter
-
-