Class HealthMonitorTask

java.lang.Object
io.micronaut.management.health.monitor.HealthMonitorTask

@Singleton @Requires(beans=EmbeddedServer.class) @Requires(property="micronaut.application.name") @Requires(property="micronaut.health.monitor.enabled",value="true",defaultValue="true") public class HealthMonitorTask extends Object
A continuous health monitor that that updates the CurrentHealthStatus in a background thread.
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • HealthMonitorTask

      @Inject public HealthMonitorTask(CurrentHealthStatus currentHealthStatus, List<HealthIndicator> healthIndicators)
      Parameters:
      currentHealthStatus - The current health status
      healthIndicators - Health indicators
    • HealthMonitorTask

      public HealthMonitorTask(CurrentHealthStatus currentHealthStatus, HealthIndicator... healthIndicators)
      Parameters:
      currentHealthStatus - The current health status
      healthIndicators - Health indicators