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 Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ModifierConstructorDescriptionprotected
ServiceReadyHealthIndicator
(ApplicationConfiguration applicationConfiguration) Default constructor. -
Method Summary
-
Field Details
-
ENABLED
- See Also:
-
-
Constructor Details
-
ServiceReadyHealthIndicator
Default constructor.- Parameters:
applicationConfiguration
- The application configuration.
-
-
Method Details
-
getOrder
public int getOrder() -
getResult
- Specified by:
getResult
in interfaceHealthIndicator
- Returns:
- A publisher that returns a
HealthResult
that provides the information necessary to build a response.
-