Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
3.2.1
-
None
-
None
Description
I think it would be useful to allow a listener to be passed in to the PersistentNode that would notify when the new node is created. This is useful as some cases such as disconnect / reconnect or when an ephemeral node is deleted and recreated by PersistentNode. In this case, I would like to be able to listen to these even so I can do something like issue a watch on the node.
For example:
```
public interface PersistentNodeListener {
/**
- Called on a persistentNode event when node is created
* - @param path Path of the znode
- @throws Exception errors
*/
void nodeCreated(String path) throws Exception;
}
```
I have a code change implementing this and can issue a pull request for this.
Attachments
Issue Links
- links to