Class ServiceReadyHealthIndicator

java.lang.Object
io.micronaut.management.health.indicator.service.ServiceReadyHealthIndicator
All Implemented Interfaces:
Ordered, HealthIndicator

@Singleton @Requires(beans=HealthEndpoint.class) @Requires(property="endpoints.health.service-ready-indicator-enabled",value="true",defaultValue="true") @Readiness public class ServiceReadyHealthIndicator extends Object implements HealthIndicator

A HealthIndicator that signals when the service is ready to service requests.

Since:
2.1
Author:
Pavol Gressa
  • Field Details

  • Constructor Details

    • ServiceReadyHealthIndicator

      @Internal protected ServiceReadyHealthIndicator(ApplicationConfiguration applicationConfiguration)
      Default constructor.
      Parameters:
      applicationConfiguration - The application configuration.
  • Method Details

    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface Ordered
      Returns:
      The order of the object. Defaults to zero (no order).
    • getResult

      public Publisher<HealthResult> getResult()
      Specified by:
      getResult in interface HealthIndicator
      Returns:
      A publisher that returns a HealthResult that provides the information necessary to build a response.