作者 crossoverJie

:memo: Writing docs.

@@ -40,7 +40,7 @@ public class ZKit { @@ -40,7 +40,7 @@ public class ZKit {
40 zkClient.subscribeChildChanges(path, new IZkChildListener() { 40 zkClient.subscribeChildChanges(path, new IZkChildListener() {
41 @Override 41 @Override
42 public void handleChildChange(String parentPath, List<String> currentChilds) throws Exception { 42 public void handleChildChange(String parentPath, List<String> currentChilds) throws Exception {
43 - logger.info("清除/更新本地缓存 parentPath=【{}】,currentChilds=【{}】", parentPath,currentChilds.toString()); 43 + logger.info("Clear or update local cache parentPath=[{}],currentChilds=[{}]", parentPath,currentChilds.toString());
44 44
45 //更新所有缓存/先删除 再新增 45 //更新所有缓存/先删除 再新增
46 serverCache.updateCache(currentChilds) ; 46 serverCache.updateCache(currentChilds) ;
@@ -38,8 +38,8 @@ public interface UserInfoCacheService { @@ -38,8 +38,8 @@ public interface UserInfoCacheService {
38 38
39 39
40 /** 40 /**
41 - *  
42 - * @return 获取所有在线用户 41 + * query all online user
  42 + * @return online user
43 */ 43 */
44 Set<CIMUserInfo> onlineUser() ; 44 Set<CIMUserInfo> onlineUser() ;
45 } 45 }
@@ -118,13 +118,13 @@ public class CIMServerHandle extends SimpleChannelInboundHandler<CIMRequestProto @@ -118,13 +118,13 @@ public class CIMServerHandle extends SimpleChannelInboundHandler<CIMRequestProto
118 118
119 @Override 119 @Override
120 protected void channelRead0(ChannelHandlerContext ctx, CIMRequestProto.CIMReqProtocol msg) throws Exception { 120 protected void channelRead0(ChannelHandlerContext ctx, CIMRequestProto.CIMReqProtocol msg) throws Exception {
121 - LOGGER.info("收到msg={}", msg.toString()); 121 + LOGGER.info("received msg=[{}]", msg.toString());
122 122
123 if (msg.getType() == Constants.CommandType.LOGIN) { 123 if (msg.getType() == Constants.CommandType.LOGIN) {
124 //保存客户端与 Channel 之间的关系 124 //保存客户端与 Channel 之间的关系
125 SessionSocketHolder.put(msg.getRequestId(), (NioSocketChannel) ctx.channel()); 125 SessionSocketHolder.put(msg.getRequestId(), (NioSocketChannel) ctx.channel());
126 SessionSocketHolder.saveSession(msg.getRequestId(), msg.getReqMsg()); 126 SessionSocketHolder.saveSession(msg.getRequestId(), msg.getReqMsg());
127 - LOGGER.info("客户端[{}]上线成功", msg.getReqMsg()); 127 + LOGGER.info("client [{}] online success!!", msg.getReqMsg());
128 } 128 }
129 129
130 //心跳更新时间 130 //心跳更新时间