Subversion Repository Public Repository

litesoft

Diff Revisions 857 vs 858 for /trunk/Java/core/Anywhere/src/org/litesoft/core/delayed/TimedRunnable.java

Diff revisions: vs.
  @@ -1,7 +1,7 @@
1 1 // This Source Code is in the Public Domain per: http://litesoft.org/License.txt
2 2 package org.litesoft.core.delayed;
3 3
4 - import org.litesoft.core.typeutils.gregorian.*;
4 + import org.litesoft.core.simpletypes.temporal.*;
5 5
6 6 public interface TimedRunnable
7 7 {
  @@ -19,7 +19,7 @@
19 19 return mValue;
20 20 }
21 21
22 - abstract public long getOnOrAfter();
22 + abstract public long getOnOrAfter( MillisecTimeSource pMillisecTimeSource );
23 23 }
24 24
25 25 public static class RunAgainOnOrAfter extends Again
  @@ -29,7 +29,7 @@
29 29 super( pValue );
30 30 }
31 31
32 - public long getOnOrAfter()
32 + public long getOnOrAfter( MillisecTimeSource pMillisecTimeSource )
33 33 {
34 34 return getValue();
35 35 }
  @@ -42,9 +42,9 @@
42 42 super( pValue );
43 43 }
44 44
45 - public long getOnOrAfter()
45 + public long getOnOrAfter( MillisecTimeSource pMillisecTimeSource )
46 46 {
47 - return Dates.now().getTime() + getValue();
47 + return pMillisecTimeSource.now() + getValue();
48 48 }
49 49 }
50 50