public interface IZkDataListener
IZkDataListener can be registered at a ZkClient for listening on zk data changes for a given path.
Node: Also this listener re-subscribes it watch for the path on each zk event (zk watches are one-timers) is is not guaranteed that events on the path are missing (see http://zookeeper.apache.org/doc/current/zookeeperProgrammers.html#ch_zkWatches). An implementation of this class should take that into account.
| 限定符和类型 | 方法和说明 |
|---|---|
void |
handleDataChange(String dataPath,
byte[] data) |
void |
handleDataDeleted(String dataPath) |
Copyright © 2019. All rights reserved.