public class RedisImBindListener extends Object implements ImBindListener, Const
Constructor and Description |
---|
RedisImBindListener() |
Modifier and Type | Method and Description |
---|---|
void |
initGroupUsers(String groupid,
org.tio.core.ChannelContext channelContext)
初始化群组用户;
|
void |
initUserGroups(String userid,
String group)
初始化用户拥有哪些群组;
|
void |
initUserInfo(User user)
初始化用户终端协议类型;
|
void |
initUserTerminal(org.tio.core.ChannelContext channelContext,
String terminal,
String status)
初始化用户终端协议类型;
|
boolean |
isStore() |
void |
onAfterGroupBind(org.tio.core.ChannelContext channelContext,
String group)
绑定群组后回调该方法
|
void |
onAfterGroupUnbind(org.tio.core.ChannelContext channelContext,
String group)
解绑群组后回调该方法
|
void |
onAfterUserBind(org.tio.core.ChannelContext channelContext,
String userid)
绑定用户后回调该方法
|
void |
onAfterUserUnbind(org.tio.core.ChannelContext channelContext,
String userid)
解绑用户后回调该方法
|
public void onAfterGroupBind(org.tio.core.ChannelContext channelContext, String group) throws Exception
ImBindListener
onAfterGroupBind
in interface ImBindListener
Exception
public void onAfterGroupUnbind(org.tio.core.ChannelContext channelContext, String group) throws Exception
ImBindListener
onAfterGroupUnbind
in interface ImBindListener
Exception
public void onAfterUserBind(org.tio.core.ChannelContext channelContext, String userid) throws Exception
ImBindListener
onAfterUserBind
in interface ImBindListener
Exception
public void onAfterUserUnbind(org.tio.core.ChannelContext channelContext, String userid) throws Exception
ImBindListener
onAfterUserUnbind
in interface ImBindListener
Exception
public void initGroupUsers(String groupid, org.tio.core.ChannelContext channelContext)
group
- userid
- public void initUserGroups(String userid, String group)
userid
- group
- public void initUserTerminal(org.tio.core.ChannelContext channelContext, String terminal, String status)
initUserTerminal
in interface ImBindListener
userid
- status(online、offline)
- public void initUserInfo(User user)
userid
- status(online、offline)
- public boolean isStore()
Copyright © 2018. All rights reserved.