curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dragonsi...@apache.org
Subject [5/6] git commit: TreeCache.getUnhandledErrorListenable() non-public
Date Mon, 06 Oct 2014 23:52:28 GMT
TreeCache.getUnhandledErrorListenable() non-public


Project: http://git-wip-us.apache.org/repos/asf/curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/60bd9f1d
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/60bd9f1d
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/60bd9f1d

Branch: refs/heads/master
Commit: 60bd9f1df0df4dc1f538812b332f18583fc31b55
Parents: c7a1ea0
Author: Scott Blum <scottb@squareup.com>
Authored: Tue Sep 2 15:39:53 2014 -0400
Committer: Scott Blum <scottb@squareup.com>
Committed: Tue Sep 2 15:39:53 2014 -0400

----------------------------------------------------------------------
 .../apache/curator/framework/recipes/cache/TreeCache.java   | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/60bd9f1d/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/TreeCache.java
----------------------------------------------------------------------
diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/TreeCache.java
b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/TreeCache.java
index 03ed982..7d51cd8 100644
--- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/TreeCache.java
+++ b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/TreeCache.java
@@ -19,6 +19,7 @@
 
 package org.apache.curator.framework.recipes.cache;
 
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Function;
 import com.google.common.base.Preconditions;
 import com.google.common.collect.ImmutableMap;
@@ -543,7 +544,13 @@ public class TreeCache implements Closeable
         return listeners;
     }
 
-    public Listenable<UnhandledErrorListener> getUnhandledErrorListenable()
+    /**
+     * Allows catching unhandled errors in asynchornous operations.
+     *
+     * TODO: consider making public.
+     */
+    @VisibleForTesting
+    Listenable<UnhandledErrorListener> getUnhandledErrorListenable()
     {
         return errorListeners;
     }


Mime
View raw message