Interface IHealthCheckRegistry
-
- All Known Implementing Classes:
HealthCheckRegistry
public interface IHealthCheckRegistry
Registry for health checks.- Since:
- 8.2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IHealthCheck
getHealthCheck(String name)
Gets a health check.void
register(String name, IHealthCheck check)
Register a health check.IHealthCheck.Result
runHealthCheck(String name)
Run a health check.void
unregister(String name)
Unregister a health check.
-
-
-
Method Detail
-
register
void register(String name, IHealthCheck check)
Register a health check.- Parameters:
name
- The name of the health check.check
- The health check.
-
unregister
void unregister(String name)
Unregister a health check.- Parameters:
name
- The name of the health check.
-
getHealthCheck
IHealthCheck getHealthCheck(String name)
Gets a health check.- Parameters:
name
- The name of the health check.
-
runHealthCheck
IHealthCheck.Result runHealthCheck(String name)
Run a health check.- Parameters:
name
- The name of the health check.- Returns:
- The result of the health check.
-
-