You can do this with the current API. Just call zk.exists() with a watch set and compare the version numbers in the returned stat field. If they are the same, then no changes happened before the exists() call and all subsequent changes will be signaled to the watcher.
On Fri, May 8, 2009 at 5:14 PM, rag...@yahoo.com <rag...@yahoo.com> wrote: > > Would it help if we have a seperate API to set a watch on a node, but the > client sends the previous version of the node it saw as a parameter. -- Ted Dunning, CTO DeepDyve