svn commit: r926920 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/ExecutionPool.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r926920 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/ExecutionPool.java

doogie-3
Author: doogie
Date: Wed Mar 24 03:20:57 2010
New Revision: 926920

URL: http://svn.apache.org/viewvc?rev=926920&view=rev
Log:
Add constructor variant that allows for setting the loadTimeNanos.

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/ExecutionPool.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/ExecutionPool.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/ExecutionPool.java?rev=926920&r1=926919&r2=926920&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/ExecutionPool.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/ExecutionPool.java Wed Mar 24 03:20:57 2010
@@ -120,7 +120,11 @@ public final class ExecutionPool {
         protected final long loadTimeNanos;
 
         protected Pulse(long delayNanos) {
-            loadTimeNanos = System.nanoTime();
+            this(System.nanoTime(), delayNanos);
+        }
+
+        protected Pulse(long loadTimeNanos, long delayNanos) {
+            this.loadTimeNanos = loadTimeNanos;
             expireTimeNanos = loadTimeNanos + delayNanos;
         }