MCPcopy Create free account
hub / github.com/C-176/LeoBlog-back / add

Method add

src/main/java/com/chen/LeoBlog/base/SocketPool.java:22–29  ·  view source on GitHub ↗

新增一则连接 @param keyId 设置主键 @param session 设置session

(Long keyId, Session session)

Source from the content-addressed store, hash-verified

20 * @param session 设置session
21 */
22 public static void add(Long keyId, Session session) {
23
24 if (keyId!=null && session != null){
25 //生成一个唯一的keyId
26// UUID uuid = UUID.randomUUID(true);
27 ONLINE_USER_SESSIONS.put(keyId, session);
28 }
29 }
30
31 /**
32 * 根据Key删除连接

Callers 15

onOpenMethod · 0.95
onMessageMethod · 0.80
getCommentListMethod · 0.80
addCommentMethod · 0.80
buyBadgeMethod · 0.80
checkMethod · 0.80
buyLimitedBadgeMethod · 0.80
addArticleMethod · 0.80
collectArticleMethod · 0.80
getFollowArticlesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected