curator is a good high level client lib, it may help you much. my implement is a home-made lib, I do not found curator that time :(
with a connection wrapper like curator client, the watcher decorator is quite simple. Inner connection watcher will trigger when old session expired and new session open again. this connection watcher set the watcher, checks Stat and trigger the watcher if needed. -----邮件原件----- 发件人: iamct [mailto:[email protected]] 发送时间: 2012年6月4日 14:36 收件人: [email protected] 主题: Re: when the zookeeper Expired ,may I have to rebuild the watch on a znode? Thank you very much。 Can you give a example? -- View this message in context: http://zookeeper-user.578899.n2.nabble.com/when-the-zookeeper-Expired-may-I-have-to-rebuild-the-watch-on-a-znode-tp7577513p7577515.html Sent from the zookeeper-user mailing list archive at Nabble.com.
