incubator-agila-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r157425 - incubator/agila/trunk/src/java/org/apache/agila/impl/memory/TimerServiceImpl.java
Date Mon, 14 Mar 2005 14:32:45 GMT
Author: geirm
Date: Mon Mar 14 06:32:44 2005
New Revision: 157425

URL: http://svn.apache.org/viewcvs?view=rev&rev=157425
Log:
patch by Glen

Modified:
    incubator/agila/trunk/src/java/org/apache/agila/impl/memory/TimerServiceImpl.java

Modified: incubator/agila/trunk/src/java/org/apache/agila/impl/memory/TimerServiceImpl.java
URL: http://svn.apache.org/viewcvs/incubator/agila/trunk/src/java/org/apache/agila/impl/memory/TimerServiceImpl.java?view=diff&r1=157424&r2=157425
==============================================================================
--- incubator/agila/trunk/src/java/org/apache/agila/impl/memory/TimerServiceImpl.java (original)
+++ incubator/agila/trunk/src/java/org/apache/agila/impl/memory/TimerServiceImpl.java Mon
Mar 14 06:32:44 2005
@@ -23,6 +23,8 @@
 import org.apache.agila.impl.EngineMessageImpl;
 import EDU.oswego.cs.dl.util.concurrent.ClockDaemon;
 
+import java.io.Serializable;
+
 /**
  *
  * @author <a href="mailto:geir@gluecode.com">Geir Magnusson Jr.</a>
@@ -37,7 +39,8 @@
         this.queue = qs;
     }
 
-    public void setExecutionContinue(final TokenID tokenID, int seconds) {
+    public void setExecutionContinue(final TokenID tokenID, final int seconds,
+                                     final String dataKey, final Serializable appData) {
 
         daemon.executeAfterDelay(1000L * seconds,
 
@@ -46,7 +49,8 @@
                     public void run() {
                         EngineMessage em = new EngineMessageImpl();
 
-                        em.setCurrentTokenID(null);
+                        em.addAppData(dataKey, appData);
+                        em.setCurrentTokenID(tokenID);
                         queue.enqueue(em);
                     }
                 }



Mime
View raw message