Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AFE61200CFD for ; Wed, 6 Sep 2017 10:49:55 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AE9D8161B89; Wed, 6 Sep 2017 08:49:55 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 09157161198 for ; Wed, 6 Sep 2017 10:49:54 +0200 (CEST) Received: (qmail 54839 invoked by uid 500); 6 Sep 2017 08:49:54 -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 54821 invoked by uid 99); 6 Sep 2017 08:49:54 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Sep 2017 08:49:54 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id AD689F55CA; Wed, 6 Sep 2017 08:49:53 +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 Date: Wed, 06 Sep 2017 08:49:54 -0000 Message-Id: In-Reply-To: <008070561f0f4de582e969bbfb5d0a6c@git.apache.org> References: <008070561f0f4de582e969bbfb5d0a6c@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/3] camel git commit: Add toString so we can see the state archived-at: Wed, 06 Sep 2017 08:49:55 -0000 Add toString so we can see the state Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/5974b3f4 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/5974b3f4 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/5974b3f4 Branch: refs/heads/master Commit: 5974b3f47c82754868122bae98259d593ba24f95 Parents: eeb828c Author: Claus Ibsen Authored: Wed Sep 6 10:46:18 2017 +0200 Committer: Claus Ibsen Committed: Wed Sep 6 10:46:18 2017 +0200 ---------------------------------------------------------------------- .../org/apache/camel/util/backoff/BackOffTimer.java | 1 - .../org/apache/camel/util/backoff/BackOffTimerTask.java | 12 ++++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/5974b3f4/camel-core/src/main/java/org/apache/camel/util/backoff/BackOffTimer.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/util/backoff/BackOffTimer.java b/camel-core/src/main/java/org/apache/camel/util/backoff/BackOffTimer.java index ae6fc0d..22ef590 100644 --- a/camel-core/src/main/java/org/apache/camel/util/backoff/BackOffTimer.java +++ b/camel-core/src/main/java/org/apache/camel/util/backoff/BackOffTimer.java @@ -91,7 +91,6 @@ public class BackOffTimer { */ long getLastAttemptTime(); - /** * An indication about the time the next attempt will be made. */ http://git-wip-us.apache.org/repos/asf/camel/blob/5974b3f4/camel-core/src/main/java/org/apache/camel/util/backoff/BackOffTimerTask.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/util/backoff/BackOffTimerTask.java b/camel-core/src/main/java/org/apache/camel/util/backoff/BackOffTimerTask.java index 7c3a505..0ed4ce0 100644 --- a/camel-core/src/main/java/org/apache/camel/util/backoff/BackOffTimerTask.java +++ b/camel-core/src/main/java/org/apache/camel/util/backoff/BackOffTimerTask.java @@ -212,4 +212,16 @@ final class BackOffTimerTask implements BackOffTimer.Task, Runnable { return currentDelay; } + + @Override + public String toString() { + return "BackOffTimerTask[" + + "status=" + status + + ", currentAttempts=" + currentAttempts + + ", currentDelay=" + currentDelay + + ", currentElapsedTime=" + currentElapsedTime + + ", lastAttemptTime=" + lastAttemptTime + + ", nextAttemptTime=" + nextAttemptTime + + ']'; + } }