You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@curator.apache.org by dr...@apache.org on 2015/08/19 01:18:34 UTC

[18/31] curator git commit: doc

doc


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

Branch: refs/heads/CURATOR-3.0
Commit: 79d152ca42b0a34826369c5620ce7807c668ad63
Parents: 5030c19
Author: randgalt <ra...@apache.org>
Authored: Tue May 19 16:37:08 2015 -0700
Committer: randgalt <ra...@apache.org>
Committed: Tue May 19 16:37:08 2015 -0700

----------------------------------------------------------------------
 .../java/org/apache/curator/framework/CuratorFramework.java | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/79d152ca/curator-framework/src/main/java/org/apache/curator/framework/CuratorFramework.java
----------------------------------------------------------------------
diff --git a/curator-framework/src/main/java/org/apache/curator/framework/CuratorFramework.java b/curator-framework/src/main/java/org/apache/curator/framework/CuratorFramework.java
index 75b434a..f75a5a8 100644
--- a/curator-framework/src/main/java/org/apache/curator/framework/CuratorFramework.java
+++ b/curator-framework/src/main/java/org/apache/curator/framework/CuratorFramework.java
@@ -236,5 +236,12 @@ public interface CuratorFramework extends Closeable
      */
     public void blockUntilConnected() throws InterruptedException;
 
-    WatcherRemoveCuratorFramework newWatcherRemoveCuratorFramework();
+    /**
+     * Returns a facade of the current instance that tracks
+     * watchers created and allows a one-shot removal of all watchers
+     * via {@link WatcherRemoveCuratorFramework#removeWatchers()}
+     *
+     * @return facade
+     */
+    public WatcherRemoveCuratorFramework newWatcherRemoveCuratorFramework();
 }