Interface HealthCheck
- All Known Implementing Classes:
DbClientHealthCheck, DeadlockHealthCheck, DiskSpaceHealthCheck, HeapMemoryHealthCheck
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A health check.
Health checks are called when a request to health status comes over the wire.
-
Method Summary
Modifier and TypeMethodDescriptioncall()Call a health check.default Stringname()Name of this health check, used in output when details are requested.default Stringpath()Path of this health check, to support single health-check queries.default HealthCheckTypetype()Type of this health check.
-
Method Details
-
type
Type of this health check.- Returns:
- type, defaults to
HealthCheckType.LIVENESS
-
name
Name of this health check, used in output when details are requested.- Returns:
- name of this health check, defaults to simple class name
-
path
-
call
-