zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iamct <qdd...@gmail.com>
Subject Re: when the zookeeper Expired ,may I have to rebuild the watch on a znode?
Date Mon, 04 Jun 2012 06:37:37 GMT
Thank you !
And  you said “No. setting watcher is binds to session, so it will not
triggered anymore.
you have to set the watcher again on the new session, do it yourself.
My way is writing a reconnect watcher decorator, this class add a connection
watcher and it rebuild watcher.
A connection wrapper should simplify the code.”

can you give me a example? Thank you very much!

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-tp7577513p7577517.html
Sent from the zookeeper-user mailing list archive at Nabble.com.

View raw message