Class HealthCheckExecutionOptions
- java.lang.Object
-
- org.apache.felix.hc.api.execution.HealthCheckExecutionOptions
-
public class HealthCheckExecutionOptions extends java.lang.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 boolean
equals(java.lang.Object obj)
int
getOverrideGlobalTimeout()
int
hashCode()
boolean
isCombineTagsWithOr()
boolean
isForceInstantExecution()
HealthCheckExecutionOptions
setCombineTagsWithOr(boolean combineTagsWithOr)
If activated, the given tags will be combined with a logical "or" instead of "and".HealthCheckExecutionOptions
setForceInstantExecution(boolean forceInstantExecution)
If activated, this will ensure that asynchronous checks will be executed immediately.HealthCheckExecutionOptions
setOverrideGlobalTimeout(int overrideGlobalTimeout)
Allows to override the global timeout for this particular execution of the health check.java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-