Class ServiceReadyHealthIndicator

  • All Implemented Interfaces:
    io.micronaut.core.order.Ordered, HealthIndicator

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

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

    Since:
    2.1
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ENABLED  
      • Fields inherited from interface io.micronaut.core.order.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ServiceReadyHealthIndicator​(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration)
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getOrder()  
      org.reactivestreams.Publisher<HealthResult> getResult()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ServiceReadyHealthIndicator

        @Internal
        protected ServiceReadyHealthIndicator​(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration)
        Default constructor.
        Parameters:
        applicationConfiguration - The application configuration.
    • Method Detail

      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface io.micronaut.core.order.Ordered
      • getResult

        public org.reactivestreams.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.