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.
A filter used to determine whether or not a health check should be reported.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HealthCheckFilterMatches all health checks, regardless of type or name. -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(String name, HealthCheck healthCheck) Returnstrueif the health check matches the filter;falseotherwise.
-
Field Details
-
ALL
Matches all health checks, regardless of type or name.
-
-
Method Details
-
matches
Returnstrueif the health check matches the filter;falseotherwise.- Parameters:
name- the health check's namehealthCheck- the health check- Returns:
trueif the health check matches the filter
-