Class HealthSupport

  • All Implemented Interfaces:
    Service

    public final class HealthSupport
    extends Object
    implements Service
    Health check support for integration with webserver, to expose the health endpoint.
    • Field Detail

      • DEFAULT_WEB_CONTEXT

        public static final String DEFAULT_WEB_CONTEXT
        Default web context root of the Health check endpoint.
        See Also:
        Constant Field Values
    • Method Detail

      • builder

        public static HealthSupport.Builder builder()
        Get a builder to configure health support instance.
        Returns:
        fluent API builder
      • create

        public static HealthSupport create()
        Create a new HealthSupport with no health checks configured. The endpoint will always return UP.
        Returns:
        health support configured with no health checks
      • create

        public static HealthSupport create​(Config config)
        Create a new HealthSupport with no health checks, configured from provided config. The endpoint will always return UP.
        Parameters:
        config - configuration of this health check, used only to get web-context property to configure HealthSupport.Builder.webContext(String)
        Returns:
        health support configured with no health checks