zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robin Bate Boerop <robin.bateboe...@userevents.com>
Subject RE: question about lock recipe and watchers
Date Mon, 17 Sep 2012 18:00:11 GMT
I am about to implement a locking algorithm based on the below modification to the Zookeeper-website-recommended
one. Does anyone else have experience with this?

Thank you, Michi, for the suggestion below.
________________________________________
From: mutsuzaki@gmail.com [mutsuzaki@gmail.com] on behalf of Michi Mutsuzaki [michi@cs.stanford.edu]
Sent: 15 September 2012 02:32
To: user@zookeeper.apache.org
Subject: Re: question about lock recipe and watchers

You could set the watch using get() instead of exists(). These watches
get set if and only if the znode exists, and they get triggered when
the znode goes away.


Mime
View raw message