Class HealthCheckExecutionOptions


  • public class HealthCheckExecutionOptions
    extends java.lang.Object
    Options for behavior of health check execution.
    • Constructor Detail

      • HealthCheckExecutionOptions

        public HealthCheckExecutionOptions()
    • Method Detail

      • 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object