Class HealthCheckExecutionOptions

java.lang.Object
org.apache.felix.hc.api.execution.HealthCheckExecutionOptions

public class HealthCheckExecutionOptions extends Object
Options for behavior of health check execution.
  • Constructor Details

    • HealthCheckExecutionOptions

      public HealthCheckExecutionOptions()
  • Method Details

    • setForceInstantExecution

      public HealthCheckExecutionOptions setForceInstantExecution(boolean forceInstantExecution)
      If activated, this will ensure that asynchronous checks will be executed immediately.
      Parameters:
      forceInstantExecution - boolean flag
      Returns:
      the HealthCheckExecutionOptions options for chaining
    • setCombineTagsWithOr

      public HealthCheckExecutionOptions setCombineTagsWithOr(boolean combineTagsWithOr)
      If activated, the given tags will be combined with a logical "or" instead of "and".
      Parameters:
      combineTagsWithOr - boolean flag
      Returns:
      the HealthCheckExecutionOptions options for chaining
    • setOverrideGlobalTimeout

      public HealthCheckExecutionOptions setOverrideGlobalTimeout(int overrideGlobalTimeout)
      Allows to override the global timeout for this particular execution of the health check.
      Parameters:
      overrideGlobalTimeout - timeout in ms to be used for this execution of the execution
      Returns:
      the HealthCheckExecutionOptions options for chaining
    • isForceInstantExecution

      public boolean isForceInstantExecution()
      Returns:
      true if instant execution is turned on
    • isCombineTagsWithOr

      public boolean isCombineTagsWithOr()
      Returns:
      true if combining tags with or is turned on
    • getOverrideGlobalTimeout

      public int getOverrideGlobalTimeout()
      Returns:
      the timeout to be used for this execution (overriding the global timeout)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object