阅读背景:

ZooKeeper Watch Java API浅析getData

来源:互联网 

        Watch是ZooKeeper中非常主要的一个机制,它可以监控ZooKeeper中节点的变更情形,告诉客户端。下面,我们以代码为例来剖析Watch在ZooKeeper中是如何实现的。ZooKeeper中一共由三种办法可以实现Watch,分离为getData、exists和getChildren,今天我们先来看下getData()办法:        Watch是ZooKeeper中非常主要的一个机制,它可以监控ZooKeeper中节




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: