camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/3] camel git commit: Add toString so we can see the state
Date Wed, 06 Sep 2017 08:49:54 GMT
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 <davsclaus@apache.org>
Authored: Wed Sep 6 10:46:18 2017 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
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
+            + ']';
+    }
 }


Mime
View raw message