Interface HealthCheckRegistry
- All Known Implementing Classes:
DefaultHealthCheckRegistry
@ParametersAreNonnullByDefault
public interface HealthCheckRegistry
Allows
HealthCheck
s to be registered.- Since:
- 6.6.0
-
Method Summary
Modifier and TypeMethodDescription@NonNull Collection<HealthCheck>
getAll()
Returns the health checks in order of execution.void
register
(HealthCheck healthCheck) Registers the given health check for later execution.void
Signals to this registry that registration of health checks is complete.
-
Method Details
-
register
Registers the given health check for later execution.- Parameters:
healthCheck
- the health check to register
-
registrationComplete
void registrationComplete()Signals to this registry that registration of health checks is complete. -
getAll
@NonNull Collection<HealthCheck> getAll()Returns the health checks in order of execution.- Returns:
- see above
- Throws:
IllegalStateException
- ifregistrationComplete()
has not been called
-