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 Summary
Constructors Constructor Description HealthCheckExecutionOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)intgetOverrideGlobalTimeout()inthashCode()booleanisCombineTagsWithOr()booleanisForceInstantExecution()HealthCheckExecutionOptionssetCombineTagsWithOr(boolean combineTagsWithOr)If activated, the given tags will be combined with a logical "or" instead of "and".HealthCheckExecutionOptionssetForceInstantExecution(boolean forceInstantExecution)If activated, this will ensure that asynchronous checks will be executed immediately.HealthCheckExecutionOptionssetOverrideGlobalTimeout(int overrideGlobalTimeout)Allows to override the global timeout for this particular execution of the health check.StringtoString()
-
-
-
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)
-
-