public interface IZkChildListener
IZkChildListener can be registered at a ZkClient for listening on zk child 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 handleChildChange(String parentPath, List<String> currentChildren) throws Exception
NOTICE: if subscribing a node(not exists), the event will be triggered while the node(parent) were created.
parentPath - The parent pathcurrentChildren - The children or null if the root node (parent path) was deleted.Exception - any exceptionCopyright © 2019. All rights reserved.