Class HealthCheckResponse

  • public abstract class HealthCheckResponse
    extends java.lang.Object
    The response to a health check invocation.

    The HealthCheckResponse class is reserved for an extension by implementation providers. An application should use one of the static methods to create a Response instance using a HealthCheckResponseBuilder.

    • Constructor Detail

      • HealthCheckResponse

        public HealthCheckResponse​()
    • Method Detail

      • setResponseProvider

        public static void setResponseProvider​(HealthCheckResponseProvider provider)
        Used by OSGi environment while service loader pattern is not supported.
        provider - the provider instance to use.
      • getName

        public abstract java.lang.String getName​()
      • getData

        public abstract java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> getData​()