@Singleton @Requires(beans=EmbeddedServer.class) @Requires(property="micronaut.application.name") @Requires(property="micronaut.health.monitor.enabled",value="true",defaultValue="true") public class HealthMonitorTask extends java.lang.Object
CurrentHealthStatus
in a background thread.Constructor and Description |
---|
HealthMonitorTask(CurrentHealthStatus currentHealthStatus,
HealthIndicator... healthIndicators) |
HealthMonitorTask(CurrentHealthStatus currentHealthStatus,
java.util.List<HealthIndicator> healthIndicators) |
@Inject public HealthMonitorTask(CurrentHealthStatus currentHealthStatus, java.util.List<HealthIndicator> healthIndicators)
currentHealthStatus
- The current health statushealthIndicators
- Health indicatorspublic HealthMonitorTask(CurrentHealthStatus currentHealthStatus, HealthIndicator... healthIndicators)
currentHealthStatus
- The current health statushealthIndicators
- Health indicators