camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject git commit: Timer suspend/resume should not stop/start the timer task, but just skip calling.
Date Fri, 09 Aug 2013 15:00:49 GMT
Updated Branches:
  refs/heads/master ee1ab691d -> 050ccf6f4


Timer suspend/resume should not stop/start the timer task, but just skip calling.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/050ccf6f
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/050ccf6f
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/050ccf6f

Branch: refs/heads/master
Commit: 050ccf6f41537675a3b43ee192ae166ba2b5861a
Parents: ee1ab69
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Fri Aug 9 16:58:59 2013 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Fri Aug 9 16:58:59 2013 +0200

----------------------------------------------------------------------
 .../org/apache/camel/component/timer/TimerConsumer.java   | 10 ----------
 1 file changed, 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/050ccf6f/camel-core/src/main/java/org/apache/camel/component/timer/TimerConsumer.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/component/timer/TimerConsumer.java
b/camel-core/src/main/java/org/apache/camel/component/timer/TimerConsumer.java
index 00148be..b470ed2 100644
--- a/camel-core/src/main/java/org/apache/camel/component/timer/TimerConsumer.java
+++ b/camel-core/src/main/java/org/apache/camel/component/timer/TimerConsumer.java
@@ -95,16 +95,6 @@ public class TimerConsumer extends DefaultConsumer {
         return endpoint.getCamelContext().getStatus().isStarted() && isRunAllowed()
&& !isSuspended();
     }
 
-    @Override
-    protected void doSuspend() throws Exception {
-        doStop();
-    }
-
-    @Override
-    protected void doResume() throws Exception {
-        doStart();
-    }
-
     protected void configureTask(TimerTask task, Timer timer) {
         if (endpoint.isFixedRate()) {
             if (endpoint.getTime() != null) {


Mime
View raw message