Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于ONLINE_UID_MAP #138

Open
wly1456839489 opened this issue Sep 26, 2023 · 2 comments
Open

关于ONLINE_UID_MAP #138

wly1456839489 opened this issue Sep 26, 2023 · 2 comments

Comments

@wly1456839489
Copy link

/**
 * 所有在线的用户和对应的socket
 */
private static final ConcurrentHashMap<Long, CopyOnWriteArrayList<Channel>> ONLINE_UID_MAP = new ConcurrentHashMap<>();

这里为什么不是ConcurrentHashMap<Long, Channel> ,这里为什么要存CopyOnWriteArrayList呀

@HildaM
Copy link
Contributor

HildaM commented Oct 7, 2023

这个问题昨天在群里我问的 😄

@wly1456839489
Copy link
Author

实现多端登录,哈哈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants