In zookeeper, how to call back the watcher on the client side?

Alibaba cloud Q & A 2022-02-13 05:26:06 阅读数:741

zookeeper watcher client

Zookeeper in , How to call back on the client Watcher ?

Take the answer 1:

client SendThread Thread receives event notification , Leave it to EventThread Thread callback Watcher. Remind me , Client's Watcher The mechanism is also one-off , Once triggered , The Watcher Is failure .

copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you.