作者 crossoverJie

:bulb: Documenting source code.

@@ -41,11 +41,11 @@ public class ServerCache { @@ -41,11 +41,11 @@ public class ServerCache {
41 /** 41 /**
42 * 更新所有缓存/先删除 再新增 42 * 更新所有缓存/先删除 再新增
43 * 43 *
44 - * @param currentChilds 44 + * @param currentChildren
45 */ 45 */
46 - public void updateCache(List<String> currentChilds) { 46 + public void updateCache(List<String> currentChildren) {
47 cache.invalidateAll(); 47 cache.invalidateAll();
48 - for (String currentChild : currentChilds) { 48 + for (String currentChild : currentChildren) {
49 // currentChild=ip-127.0.0.1:11212:9082 or 127.0.0.1:11212:9082 49 // currentChild=ip-127.0.0.1:11212:9082 or 127.0.0.1:11212:9082
50 String key ; 50 String key ;
51 if (currentChild.split("-").length == 2){ 51 if (currentChild.split("-").length == 2){
@@ -22,19 +22,19 @@ app.zk.connect.timeout=15000 @@ -22,19 +22,19 @@ app.zk.connect.timeout=15000
22 app.zk.root=/route 22 app.zk.root=/route
23 23
24 #路由策略,轮询 24 #路由策略,轮询
25 -app.route.way=com.crossoverjie.cim.common.route.algorithm.loop.LoopHandle 25 +#app.route.way=com.crossoverjie.cim.common.route.algorithm.loop.LoopHandle
26 26
27 #路由策略,随机 27 #路由策略,随机
28 #app.route.way=com.crossoverjie.cim.common.route.algorithm.random.RandomHandle 28 #app.route.way=com.crossoverjie.cim.common.route.algorithm.random.RandomHandle
29 29
30 #路由策略,一致性 hash 30 #路由策略,一致性 hash
31 -#app.route.way=com.crossoverjie.cim.common.route.algorithm.consistenthash.ConsistentHashHandle 31 +app.route.way=com.crossoverjie.cim.common.route.algorithm.consistenthash.ConsistentHashHandle
32 32
33 #一致性 hash 算法具体实现--自定义有序 map 33 #一致性 hash 算法具体实现--自定义有序 map
34 #app.route.way.consitenthash=com.crossoverjie.cim.common.route.algorithm.consistenthash.SortArrayMapConsistentHash 34 #app.route.way.consitenthash=com.crossoverjie.cim.common.route.algorithm.consistenthash.SortArrayMapConsistentHash
35 35
36 #一致性 hash 算法具体实现--TreeMap 36 #一致性 hash 算法具体实现--TreeMap
37 -#app.route.way.consitenthash=com.crossoverjie.cim.common.route.algorithm.consistenthash.TreeMapConsistentHash 37 +app.route.way.consitenthash=com.crossoverjie.cim.common.route.algorithm.consistenthash.TreeMapConsistentHash
38 38
39 # Redis 配置 39 # Redis 配置
40 spring.redis.host=xx 40 spring.redis.host=xx