You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2016/07/19 11:07:51 UTC

svn commit: r1753361 - /sling/trunk/bundles/extensions/healthcheck/core/src/main/java/org/apache/sling/hc/core/impl/executor/HealthCheckExecutorImpl.java

Author: kwin
Date: Tue Jul 19 11:07:50 2016
New Revision: 1753361

URL: http://svn.apache.org/viewvc?rev=1753361&view=rev
Log:
fix typo in constant

Modified:
    sling/trunk/bundles/extensions/healthcheck/core/src/main/java/org/apache/sling/hc/core/impl/executor/HealthCheckExecutorImpl.java

Modified: sling/trunk/bundles/extensions/healthcheck/core/src/main/java/org/apache/sling/hc/core/impl/executor/HealthCheckExecutorImpl.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/healthcheck/core/src/main/java/org/apache/sling/hc/core/impl/executor/HealthCheckExecutorImpl.java?rev=1753361&r1=1753360&r2=1753361&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/healthcheck/core/src/main/java/org/apache/sling/hc/core/impl/executor/HealthCheckExecutorImpl.java (original)
+++ sling/trunk/bundles/extensions/healthcheck/core/src/main/java/org/apache/sling/hc/core/impl/executor/HealthCheckExecutorImpl.java Tue Jul 19 11:07:50 2016
@@ -90,11 +90,11 @@ public class HealthCheckExecutorImpl imp
             description = "Threshold in ms until a check is marked as 'exceedingly' timed out and will marked CRITICAL instead of WARN only",
             longValue = LONGRUNNING_FUTURE_THRESHOLD_CRITICAL_DEFAULT_MS)
 
-    private static final long RESULT_CACHE_TTLL_DEFAULT_MS = 1000 * 2;
+    private static final long RESULT_CACHE_TTL_DEFAULT_MS = 1000 * 2;
     public static final String PROP_RESULT_CACHE_TTL_MS = "resultCacheTtlInMs";
     @Property(name = PROP_RESULT_CACHE_TTL_MS, label = "Results Cache TTL in Ms",
             description = "Result Cache time to live - results will be cached for the given time",
-            longValue = RESULT_CACHE_TTLL_DEFAULT_MS)
+            longValue = RESULT_CACHE_TTL_DEFAULT_MS)
 
 
     private long timeoutInMs;
@@ -149,9 +149,9 @@ public class HealthCheckExecutorImpl imp
             this.longRunningFutureThresholdForRedMs = LONGRUNNING_FUTURE_THRESHOLD_CRITICAL_DEFAULT_MS;
         }
 
-        this.resultCacheTtlInMs = PropertiesUtil.toLong(properties.get(PROP_RESULT_CACHE_TTL_MS), RESULT_CACHE_TTLL_DEFAULT_MS);
+        this.resultCacheTtlInMs = PropertiesUtil.toLong(properties.get(PROP_RESULT_CACHE_TTL_MS), RESULT_CACHE_TTL_DEFAULT_MS);
         if (this.resultCacheTtlInMs <= 0L) {
-            this.resultCacheTtlInMs = RESULT_CACHE_TTLL_DEFAULT_MS;
+            this.resultCacheTtlInMs = RESULT_CACHE_TTL_DEFAULT_MS;
         }
     }