How to handle watcher on the server side in zookeeper?

Alibaba cloud Q & A 2022-02-13 05:26:03 阅读数:46

handle watcher server zookeeper

Zookeeper in , How to handle on the server side Watcher ?

Take the answer 1:

(1) Server receive Watcher And store

(2)Watcher Trigger

a. encapsulation WatcherEvent

b. Inquire about Watcher

(3) call process Method to trigger Watcher

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