public class Live extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static Map<String,Client> |
appClients
APP客户端,
|
protected static AtomicInteger |
onlineCount
静态变量,用来记录当前在线连接数。
|
protected static Map<String,Integer> |
otherServerOnlineCount
其他服务器中的在线人数,<服务器的SID, 在线人数>
|
protected static Map<String,Client> |
padClients
平板客户端,
|
protected static Map<String,Client> |
pcClients
PC客户端,
|
protected static Map<String,String> |
users |
protected static Map<String,Client> |
xcxClients
小程序客户端,
|
| 构造器和说明 |
|---|
Live() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected static void |
addClient(Client client) |
protected static void |
addOnlineCount() |
static Client |
client(String userId,
bee.cloud.ri.mq.IM.ORIGIN origin) |
static List<Client> |
clients() |
static List<Client> |
clients(bee.cloud.ri.mq.IM.ORIGIN origin) |
static List<Client> |
clients(String userId) |
protected static int |
getOnlineCount() |
static boolean |
hasClient(String userId) |
protected static void |
removeClient(Client client) |
protected static void |
subOnlineCount() |
protected static final AtomicInteger onlineCount
protected static final Map<String,Integer> otherServerOnlineCount
public static boolean hasClient(String userId)
protected static void addOnlineCount()
protected static int getOnlineCount()
protected static void subOnlineCount()
protected static void addClient(Client client)
protected static void removeClient(Client client)
Copyright © 2023. All rights reserved.