apache / apache/curator

[CURATOR-386] Allow listener to be passed in to PersistentNode to notify for node creation events

Open
#906 9 comments 0 reactions 0 assignees View on GitHub
imported-jira-issue rfe
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


  • status: Open
  • priority: Minor
  • resolution: Unresolved
  • imported: 2025-01-21

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.