As of the latest release the same watcher will be called for all events. The 
event callback includes the path of the znode that changed, which is how you 
can distinguish events.

In the next major release, we will be allowing a watch object to be passed to 
the requests to make it easier for programmers to control what is going to be 
invoked with the watch event arrives.


On Thursday 05 June 2008 00:15:54 Avinash Lakshman wrote:
> Hi All
> I am trying to get my feet wet with Zookeeper. I am trying to set up watch
> events for a call to getChildren() for a particular znode. My question is
> whether the same watcher that the ZooKeeper instance was constructed with
> going to be called for all watch events. If so how do I know for what event
> it is being called.
> Thanks
> A

Check out the new Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
Zookeeper-user mailing list

Reply via email to