This commit is contained in:
mcy
2019-01-17 10:22:08 +08:00
parent 739f3b4fa1
commit e387cfdee5
4 changed files with 462 additions and 432 deletions

View File

@@ -16,7 +16,7 @@ import com.google.common.collect.MigrateMap;
/**
* 使用自定义的ZooKeeperx for zk connection
*
*
* @author jianghang 2012-7-10 下午02:31:15
* @version 1.0.0
*/
@@ -34,6 +34,10 @@ public class ZkClientx extends ZkClient {
return clients.get(servers);
}
public static ZkClientx removeZkClient(String servers) {
return clients.remove(servers);
}
public ZkClientx(String serverstring){
this(serverstring, Integer.MAX_VALUE);
}
@@ -60,7 +64,7 @@ public class ZkClientx extends ZkClient {
/**
* Create a persistent Sequential node.
*
*
* @param path
* @param createParents if true all parent dirs are created as well and no
* {@link ZkNodeExistsException} is thrown in case the path already exists
@@ -88,7 +92,7 @@ public class ZkClientx extends ZkClient {
/**
* Create a persistent Sequential node.
*
*
* @param path
* @param data
* @param createParents if true all parent dirs are created as well and no
@@ -119,7 +123,7 @@ public class ZkClientx extends ZkClient {
/**
* Create a persistent Sequential node.
*
*
* @param path
* @param data
* @param createParents if true all parent dirs are created as well and no