Interface HealthCheckExecutor


  • @ProviderType
    public interface HealthCheckExecutor
    Executes health checks registered as OSGi services and implementing the interface HealthCheck. 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
    • 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 selector
        options - options for controlling execution behavior
        Returns:
        List of results. The list might be empty.