jurmous / etcd4j

Java / Netty client for etcd, the highly-available key value store for shared configuration and service discovery.
Apache License 2.0
267 stars 83 forks source link

getting the changed value from etcd using listener #155

Open naveenkumargp opened 7 years ago

naveenkumargp commented 7 years ago

Hi All i have scenario like when i set the data to key from etcd client ,at the same time i will add listener for that key and key may be a directory path .i e, directory may contain other directories as well as keys also. and i added the listener method for the parent directory using promise object , now if i do any changes to child nodes or child key like adding new sub directory or setting new data to child key how listener will come to know that there is a change in directory structure, and how to get the exact change path as well as data. can any one help for this.

Regards Naveen

lburgazzoli commented 7 years ago

I think you can use the recursive() option