curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject curator git commit: more complete comment for clearWatcherReferences
Date Mon, 08 Feb 2016 18:17:54 GMT
Repository: curator
Updated Branches:
  refs/heads/CURATOR-299 d192209df -> 0ed6f662c


more complete comment for clearWatcherReferences


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

Branch: refs/heads/CURATOR-299
Commit: 0ed6f662cd6ec3b700b2068ee2561e42fd434dd5
Parents: d192209
Author: randgalt <randgalt@apache.org>
Authored: Mon Feb 8 13:17:47 2016 -0500
Committer: randgalt <randgalt@apache.org>
Committed: Mon Feb 8 13:17:47 2016 -0500

----------------------------------------------------------------------
 .../main/java/org/apache/curator/framework/CuratorFramework.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/0ed6f662/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 29c5f06..c8fa4a5 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
@@ -269,7 +269,9 @@ public interface CuratorFramework extends Closeable
      * @param watcher the watcher
      * 
      * @deprecated As of ZooKeeper 3.5 Curators recipes will handle removing watcher references
-     * when they are no longer used.
+     * when they are no longer used. If you write your own recipe, follow the example of
Curator
+     * recipes and use {@link #newWatcherRemoveCuratorFramework} calling {@link WatcherRemoveCuratorFramework#removeWatchers()}
+     * when closing your instance.
      */
     @Deprecated
     public void clearWatcherReferences(Watcher watcher);


Mime
View raw message