Have a look at Curator. It has a recipe to do this exact thing: PathChildrenCachehttps://curator.apache.org/curator-recipes/path-cache.html
From: xytd [EMAIL PROTECTED]
Reply: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: June 9, 2014 at 12:42:49 PM
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Subject: Re: How to set a watch for a deletion of a node?
The thing is I don't want to set a watch on that particular child node. I am
using the parent node as a container table and I would like to be notified
through a Watch mechanism any of my child is being deleted and which child
is that (via a node path).
That way I don't have to set a watch for each child node when it is getting
created and I can track it on the parent node level only.
Isn't there a way to get around this please?
Thanks for the hints,
View this message in context: http://zookeeper-user.578899.n2.nabble.com/How-to-set-a-watch-for-a-deletion-of-a-node-tp7579974p7579976.html
Sent from the zookeeper-user mailing list archive at Nabble.com.