[CURATOR-386] Allow listener to be passed in to PersistentNode to notify for node creation events
- Dominant language
- Java
- Stars
- 3.2k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
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.
---
Originally reported by akira989, imported from: Allow listener to be passed in to PersistentNode to notify for node creation events
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.