Package | Description |
---|---|
org.tio.client | |
org.tio.core | |
org.tio.core.maintain | |
org.tio.http.server.stat.ip.path | |
org.tio.utils.page |
Modifier and Type | Field and Description |
---|---|
SetWithLock<ChannelContext> |
ClientTioConfig.closeds |
SetWithLock<ChannelContext> |
ClientTioConfig.connecteds |
Modifier and Type | Field and Description |
---|---|
SetWithLock<ChannelContext> |
TioConfig.connections |
Modifier and Type | Method and Description |
---|---|
static SetWithLock<ChannelContext> |
Tio.getAll(TioConfig tioConfig)
获取所有连接,包括当前处于断开状态的
|
static SetWithLock<ChannelContext> |
Tio.getAllChannelContexts(TioConfig tioConfig)
Deprecated.
用getAll(TioConfig tioConfig)
|
static SetWithLock<ChannelContext> |
Tio.getAllConnectedsChannelContexts(ClientTioConfig clientTioConfig)
Deprecated.
用getAllConnecteds(ClientTioConfig clientTioConfig)
|
static SetWithLock<ChannelContext> |
Tio.getByGroup(TioConfig tioConfig,
String group)
获取一个组的所有客户端
|
static SetWithLock<ChannelContext> |
Tio.getByIp(TioConfig tioConfig,
String ip)
根据客户端ip获取SetWithLock
|
static SetWithLock<ChannelContext> |
Tio.getByToken(TioConfig tioConfig,
String token)
根据token获取SetWithLock
|
static SetWithLock<ChannelContext> |
Tio.getByUserid(TioConfig tioConfig,
String userid)
根据userid获取SetWithLock
|
static SetWithLock<ChannelContext> |
Tio.getChannelContextsByGroup(TioConfig tioConfig,
String group)
Deprecated.
用getByGroup(tioConfig, group)
|
static SetWithLock<ChannelContext> |
Tio.getChannelContextsByToken(TioConfig tioConfig,
String token)
Deprecated.
用getByToken(tioConfig, token)
|
static SetWithLock<ChannelContext> |
Tio.getChannelContextsByUserid(TioConfig tioConfig,
String userid)
Deprecated.
用getByUserid(tioConfig, userid)
|
static SetWithLock<ChannelContext> |
Tio.getConnecteds(ClientTioConfig clientTioConfig)
此API仅供 tio client使用
获取所有处于正常连接状态的连接
|
SetWithLock<String> |
ChannelContext.getGroups() |
Modifier and Type | Method and Description |
---|---|
static Boolean |
Tio.bSendToSet(TioConfig tioConfig,
SetWithLock<ChannelContext> setWithLock,
Packet packet,
ChannelContextFilter channelContextFilter)
发消息到指定集合
|
static void |
Tio.closeSet(TioConfig tioConfig,
SetWithLock<ChannelContext> setWithLock,
String remark,
ChannelContext.CloseCode closeCode)
关闭集合
|
static void |
Tio.removeSet(TioConfig tioConfig,
SetWithLock<ChannelContext> setWithLock,
String remark,
ChannelContext.CloseCode closeCode)
移除集合
|
static void |
Tio.sendToSet(TioConfig tioConfig,
SetWithLock<ChannelContext> setWithLock,
Packet packet,
ChannelContextFilter channelContextFilter)
发消息到指定集合
|
Modifier and Type | Method and Description |
---|---|
SetWithLock<ChannelContext> |
Groups.clients(TioConfig tioConfig,
String groupid)
一个组有哪些客户端
|
SetWithLock<ChannelContext> |
Ips.clients(TioConfig tioConfig,
String ip)
一个ip有哪些客户端,有可能返回null
|
SetWithLock<ChannelContext> |
Users.find(TioConfig tioConfig,
String userid)
Find.
|
SetWithLock<ChannelContext> |
Tokens.find(TioConfig tioConfig,
String token)
Find.
|
SetWithLock<String> |
Groups.groups(ChannelContext channelContext)
某个客户端在哪些组中
|
Modifier and Type | Method and Description |
---|---|
MapWithLock<String,SetWithLock<ChannelContext>> |
Groups.getGroupmap() |
MapWithLock<String,SetWithLock<ChannelContext>> |
Ips.getIpmap() |
MapWithLock<String,SetWithLock<ChannelContext>> |
Users.getMap() |
MapWithLock<String,SetWithLock<ChannelContext>> |
Tokens.getMap() |
Modifier and Type | Field and Description |
---|---|
SetWithLock<String> |
IpAccessStat.sessionIds
这个ip下的所有sessionid
|
Modifier and Type | Method and Description |
---|---|
static <T> Page<T> |
PageUtils.fromSetWithLock(SetWithLock<?> setWithLock,
int pageNumber,
int pageSize,
Converter<T> converter) |
static <T> Page<T> |
PageUtils.fromSetWithLock(SetWithLock<T> setWithLock,
int pageNumber,
int pageSize) |
Copyright © 2021. All rights reserved.