Class HealthCheckExecutionOptions
java.lang.Object
org.apache.felix.hc.api.execution.HealthCheckExecutionOptions
Options for behavior of health check execution.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
hashCode()
boolean
boolean
setCombineTagsWithOr
(boolean combineTagsWithOr) If activated, the given tags will be combined with a logical "or" instead of "and".setForceInstantExecution
(boolean forceInstantExecution) If activated, this will ensure that asynchronous checks will be executed immediately.setOverrideGlobalTimeout
(int overrideGlobalTimeout) Allows to override the global timeout for this particular execution of the health check.toString()
-
Constructor Details
-
HealthCheckExecutionOptions
public HealthCheckExecutionOptions()
-
-
Method Details
-
setForceInstantExecution
If activated, this will ensure that asynchronous checks will be executed immediately.- Parameters:
forceInstantExecution
- boolean flag- Returns:
- the HealthCheckExecutionOptions options for chaining
-
setCombineTagsWithOr
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
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
-
hashCode
public int hashCode() -
equals
-