Interface HealthCheckExecutor
Executes health checks registered as OSGi services and implementing the
interface
HealthCheck.
The executor is optimized:
- All health checks as selected by
HealthCheckSelectorare executed in parallel - If the same health check is triggered in parallel, it is only executed once
- Special handling for async execution, timeout, stickiness and caching as defined by service properties in
HealthCheck
-
Method Summary
Modifier and TypeMethodDescriptionexecute(HealthCheckSelector selector) Executes all health checks matching the supplied filter options.execute(HealthCheckSelector selector, HealthCheckExecutionOptions options) Executes all health checks with the supplied filter options.
-
Method Details
-
execute
Executes all health checks matching the supplied filter options. If no options are supplied, all health checks are executed.- Parameters:
selector- filter selector- Returns:
- List of results. The list might be empty.
-
execute
List<HealthCheckExecutionResult> execute(HealthCheckSelector selector, HealthCheckExecutionOptions options) Executes all health checks with the supplied filter options. If no options are supplied, all health checks are executed.- Parameters:
selector- filter selectoroptions- options for controlling execution behavior- Returns:
- List of results. The list might be empty.
-