Package org.gcube.common.health.api
Annotation Interface ReadinessChecker
Marks a
HealthCheck of an application: SmartGears finds it, runs it at the start and then
every minute, and reports it in the health of the application.-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanWhether the check is run once for each Context the application works in, with the token of that Context, instead of once for the whole application: e.g. whether the configuration the application needs in a Context is there.
-
Element Details
-
perContext
boolean perContextWhether the check is run once for each Context the application works in, with the token of that Context, instead of once for the whole application: e.g. whether the configuration the application needs in a Context is there. A Context where it is not ready is a Context where the application is not active: its requests there are refused, the others are served.- Returns:
truefor a check run per Context
- Default:
- false
-