Annotation Interface ReadinessChecker


@Retention(RUNTIME) @Target(TYPE) public @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 Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Whether 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 perContext
      Whether 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:
      true for a check run per Context
      Default:
      false