摘要: 以服务动态上下线通知为例 Client 监听服务器状态 public class DistributeClient { private String connectString = "127.0.0.1:2181"; private int sessionTimeout = 2000; privat 阅读全文
posted @ 2019-04-23 23:32 江湖小小白 阅读(2050) 评论(1) 推荐(0)
摘要: ZooKeeper Java API pom.xml 依赖 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2 阅读全文
posted @ 2019-04-23 22:53 江湖小小白 阅读(291) 评论(0) 推荐(0)