From commits-return-3735-apmail-zookeeper-commits-archive=zookeeper.apache.org@zookeeper.apache.org Thu Apr 3 23:13:55 2014 Return-Path: X-Original-To: apmail-zookeeper-commits-archive@www.apache.org Delivered-To: apmail-zookeeper-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ED16111892 for ; Thu, 3 Apr 2014 23:13:54 +0000 (UTC) Received: (qmail 61251 invoked by uid 500); 3 Apr 2014 23:13:54 -0000 Delivered-To: apmail-zookeeper-commits-archive@zookeeper.apache.org Received: (qmail 61188 invoked by uid 500); 3 Apr 2014 23:13:54 -0000 Mailing-List: contact commits-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ Delivered-To: mailing list commits@zookeeper.apache.org Received: (qmail 61178 invoked by uid 99); 3 Apr 2014 23:13:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Apr 2014 23:13:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Apr 2014 23:13:52 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 1986F2388860; Thu, 3 Apr 2014 23:13:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1584459 - in /zookeeper/trunk: CHANGES.txt src/docs/src/documentation/content/xdocs/zookeeperProgrammers.xml Date: Thu, 03 Apr 2014 23:13:29 -0000 To: commits@zookeeper.apache.org From: michim@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140403231330.1986F2388860@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: michim Date: Thu Apr 3 23:13:29 2014 New Revision: 1584459 URL: http://svn.apache.org/r1584459 Log: ZOOKEEPER-1831. Document remove watches details to the guide (Rakesh R via michim) Modified: zookeeper/trunk/CHANGES.txt zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperProgrammers.xml Modified: zookeeper/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/zookeeper/trunk/CHANGES.txt?rev=1584459&r1=1584458&r2=1584459&view=diff ============================================================================== --- zookeeper/trunk/CHANGES.txt (original) +++ zookeeper/trunk/CHANGES.txt Thu Apr 3 23:13:29 2014 @@ -844,6 +844,9 @@ IMPROVEMENTS: ZOOKEEPER-1730. Make ZooKeeper easier to test - support simulating a session expiration (Jordan Zimmerman via michim) + ZOOKEEPER-1831. Document remove watches details to the guide (Rakesh R via + michim) + headers Release 3.4.0 - Modified: zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperProgrammers.xml URL: http://svn.apache.org/viewvc/zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperProgrammers.xml?rev=1584459&r1=1584458&r2=1584459&view=diff ============================================================================== --- zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperProgrammers.xml (original) +++ zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperProgrammers.xml Thu Apr 3 23:13:29 2014 @@ -677,7 +677,28 @@ - + +
+ Remove Watches + We can remove the watches registered on a znode with a call to + removeWatches. Also, a ZooKeeper client can remove watches locally even + if there is no server connection by setting the local flag to true. The + following list details the events which will be triggered after the + successful watch removal. + + + + Child Remove event: + Watcher which was added with a call to getChildren. + + + + Data Remove event: + Watcher which was added with a call to exists or getData. + + +
+
What ZooKeeper Guarantees about Watches