You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2013/08/09 17:00:49 UTC
git commit: Timer suspend/resume should not stop/start the timer task,
but just skip calling.
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 <da...@apache.org>
Authored: Fri Aug 9 16:58:59 2013 +0200
Committer: Claus Ibsen <da...@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) {