Class HealthCheckExecutor
java.lang.Object
com.kingsrook.qqq.middleware.health.HealthCheckExecutor
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHealthCheckExecutor(QInstance qInstance, HealthCheckMetaData config) Constructor -
Method Summary
-
Field Details
-
DEFAULT_TIMEOUT_MS
public static final int DEFAULT_TIMEOUT_MS- See Also:
-
-
Constructor Details
-
HealthCheckExecutor
Constructor- Parameters:
qInstance- the QInstanceconfig- health check configuration
-
-
Method Details
-
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.
-