Interface HealthCheckExecutor
-
@ProviderType public interface HealthCheckExecutor
Executes health checks registered as OSGi services and implementing the interfaceHealthCheck
. The executor is optimized:- All health checks as selected by
HealthCheckSelector
are 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
- All health checks as selected by
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<HealthCheckExecutionResult>
execute(HealthCheckSelector selector)
Executes all health checks matching the supplied filter options.java.util.List<HealthCheckExecutionResult>
execute(HealthCheckSelector selector, HealthCheckExecutionOptions options)
Executes all health checks with the supplied filter options.
-
-
-
Method Detail
-
execute
java.util.List<HealthCheckExecutionResult> execute(HealthCheckSelector selector)
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
java.util.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.
-
-