servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r406651 - in /incubator/servicemix/trunk/servicemix-services/src/main/java/org/apache/servicemix/timers: TimerManager.java impl/TimerManagerImpl.java
Date Mon, 15 May 2006 15:15:04 GMT
Author: gnodet
Date: Mon May 15 08:15:03 2006
New Revision: 406651

URL: http://svn.apache.org/viewcvs?rev=406651&view=rev
Log:
Add a stop method to TimerManager

Modified:
    incubator/servicemix/trunk/servicemix-services/src/main/java/org/apache/servicemix/timers/TimerManager.java
    incubator/servicemix/trunk/servicemix-services/src/main/java/org/apache/servicemix/timers/impl/TimerManagerImpl.java

Modified: incubator/servicemix/trunk/servicemix-services/src/main/java/org/apache/servicemix/timers/TimerManager.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-services/src/main/java/org/apache/servicemix/timers/TimerManager.java?rev=406651&r1=406650&r2=406651&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-services/src/main/java/org/apache/servicemix/timers/TimerManager.java
(original)
+++ incubator/servicemix/trunk/servicemix-services/src/main/java/org/apache/servicemix/timers/TimerManager.java
Mon May 15 08:15:03 2006
@@ -22,5 +22,7 @@
     Timer schedule(TimerListener listener, long delay);
     
     Timer schedule(TimerListener listener, Date date);
+    
+    void stop();
 
 }

Modified: incubator/servicemix/trunk/servicemix-services/src/main/java/org/apache/servicemix/timers/impl/TimerManagerImpl.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-services/src/main/java/org/apache/servicemix/timers/impl/TimerManagerImpl.java?rev=406651&r1=406650&r2=406651&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-services/src/main/java/org/apache/servicemix/timers/impl/TimerManagerImpl.java
(original)
+++ incubator/servicemix/trunk/servicemix-services/src/main/java/org/apache/servicemix/timers/impl/TimerManagerImpl.java
Mon May 15 08:15:03 2006
@@ -47,6 +47,10 @@
         return tt;
     }
     
+    public void stop() {
+        timer.cancel();
+    }
+    
     protected static class TimerImpl extends TimerTask implements Timer {
 
         private TimerListener timerListener;



Mime
View raw message