public class Users extends Object
| Constructor and Description |
|---|
Users() |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(String userId,
ChannelContext channelContext)
绑定userid.
|
Set<ChannelContext> |
find(TioConfig tioConfig,
String userid)
Find.
|
int |
size() |
void |
unbind(ChannelContext channelContext)
解除channelContext绑定的userid
|
void |
unbind(TioConfig tioConfig,
String userId)
解除tioConfig范围内所有ChannelContext的 userid绑定
|
public void bind(String userId, ChannelContext channelContext)
userId - the useridchannelContext - the channel contextpublic Set<ChannelContext> find(TioConfig tioConfig, String userid)
userid - the useridpublic int size()
public void unbind(ChannelContext channelContext)
channelContext - the channel contextCopyright © 2024. All rights reserved.