Repository: curator Updated Branches: refs/heads/CURATOR-217 5030c1984 -> 79d152ca4
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-217 Commit: 79d152ca42b0a34826369c5620ce7807c668ad63 Parents: 5030c19 Author: randgalt <[email protected]> Authored: Tue May 19 16:37:08 2015 -0700 Committer: randgalt <[email protected]> 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(); }
