Class HealthCheckExecutor

java.lang.Object
com.kingsrook.qqq.middleware.health.HealthCheckExecutor

public class HealthCheckExecutor extends Object
Executor that runs health indicators and aggregates results. This class handles: - Running multiple indicators (potentially in parallel) - Enforcing timeouts on individual indicators - Aggregating results into overall health status - Handling exceptions gracefully
  • Field Details

  • Constructor Details

    • HealthCheckExecutor

      public HealthCheckExecutor(QInstance qInstance, HealthCheckMetaData config)
      Constructor
      Parameters:
      qInstance - the QInstance
      config - health check configuration
  • Method Details

    • execute

      public HealthResponse execute()
      Execute all configured health indicators and return aggregated response.
      Returns:
      health response with overall status and individual check results
    • shutdown

      public void shutdown()
      Shutdown the executor service. Call this when done with the executor to clean up threads.