Interface HealthCheckRegistry
-
- All Known Implementing Classes:
DefaultHealthCheckRegistry
@ParametersAreNonnullByDefault public interface HealthCheckRegistry
AllowsHealthCheck
s to be registered.- Since:
- 6.6.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @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
registrationComplete()
Signals to this registry that registration of health checks is complete.
-
-
-
Method Detail
-
register
void register(HealthCheck healthCheck)
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
-
-