Author: ghenzler
Date: Wed Jan 9 20:11:50 2019
New Revision: 1850899
URL: http://svn.apache.org/viewvc?rev=1850899&view=rev
Log:
FELIX-5952 Allow chaining of setters for easier usage (fully backwards
compatible)
Modified:
felix/trunk/healthcheck/api/src/main/java/org/apache/felix/hc/api/execution/HealthCheckExecutionOptions.java
Modified:
felix/trunk/healthcheck/api/src/main/java/org/apache/felix/hc/api/execution/HealthCheckExecutionOptions.java
URL:
http://svn.apache.org/viewvc/felix/trunk/healthcheck/api/src/main/java/org/apache/felix/hc/api/execution/HealthCheckExecutionOptions.java?rev=1850899&r1=1850898&r2=1850899&view=diff
==============================================================================
---
felix/trunk/healthcheck/api/src/main/java/org/apache/felix/hc/api/execution/HealthCheckExecutionOptions.java
(original)
+++
felix/trunk/healthcheck/api/src/main/java/org/apache/felix/hc/api/execution/HealthCheckExecutionOptions.java
Wed Jan 9 20:11:50 2019
@@ -33,22 +33,25 @@ public class HealthCheckExecutionOptions
/** If activated, this will ensure that asynchronous checks will be
executed immediately.
*
* @param forceInstantExecution boolean flag */
- public void setForceInstantExecution(boolean forceInstantExecution) {
+ public HealthCheckExecutionOptions setForceInstantExecution(boolean
forceInstantExecution) {
this.forceInstantExecution = forceInstantExecution;
+ return this;
}
/** If activated, the given tags will be combined with a logical "or"
instead of "and".
*
* @param combineTagsWithOr boolean flag */
- public void setCombineTagsWithOr(boolean combineTagsWithOr) {
+ public HealthCheckExecutionOptions setCombineTagsWithOr(boolean
combineTagsWithOr) {
this.combineTagsWithOr = combineTagsWithOr;
+ return this;
}
/** Allows to override the global timeout for this particular execution of
the health check.
*
* @param overrideGlobalTimeout timeout in ms to be used for this
execution of the execution */
- public void setOverrideGlobalTimeout(int overrideGlobalTimeout) {
+ public HealthCheckExecutionOptions setOverrideGlobalTimeout(int
overrideGlobalTimeout) {
this.overrideGlobalTimeout = overrideGlobalTimeout;
+ return this;
}
/** @return true if instant execution is turned on */