Github user leyoliu1987 commented on the issue:
https://github.com/apache/curator/pull/245
Hi Mr Scott,
Thank you for reply me! I test my appliation many times again, below is
my simple code and running result and zookeeper Node structure.
zk node structure:
TOPIC
LISTENERIPS:192.168.58.22
SENDCHANNEL
SMS:true
WECHAT:false
WEBSOCKET:dragnet
SERVERNAME:test
TOPICNAME:dragnet
public class TopicTreeListener implements TreeCacheListener {
@Override
public void childEvent(CuratorFramework client, TreeCacheEvent event)
throws Exception {
ChildData data = event.getData();
Type type = event.getType();
System.out.println("type="+type);
}
}
below is my running result:
type=NODE_ADDED
type=NODE_ADDED
type=NODE_ADDED
type=NODE_ADDED
type=NODE_ADDED
type=INITIALIZED
type=NODE_ADDED
type=NODE_ADDED
type=NODE_ADDED

---