Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CA08510245 for ; Fri, 9 Aug 2013 15:00:55 +0000 (UTC) Received: (qmail 68074 invoked by uid 500); 9 Aug 2013 15:00:55 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 67991 invoked by uid 500); 9 Aug 2013 15:00:51 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 67969 invoked by uid 99); 9 Aug 2013 15:00:50 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Aug 2013 15:00:50 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id E75578BAEDA; Fri, 9 Aug 2013 15:00:49 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: davsclaus@apache.org To: commits@camel.apache.org Message-Id: <8234b2c7eed14b2d871a317ca9b28618@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: Timer suspend/resume should not stop/start the timer task, but just skip calling. Date: Fri, 9 Aug 2013 15:00:49 +0000 (UTC) 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 Authored: Fri Aug 9 16:58:59 2013 +0200 Committer: Claus Ibsen 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) {