Package | Description |
---|---|
org.tio.core |
Modifier and Type | Method and Description |
---|---|
static ChannelContext.CloseCode |
ChannelContext.CloseCode.from(Byte value) |
ChannelContext.CloseCode |
ChannelContext.getCloseCode() |
static ChannelContext.CloseCode |
ChannelContext.CloseCode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChannelContext.CloseCode[] |
ChannelContext.CloseCode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static void |
Tio.close(ChannelContext channelContext,
String remark,
ChannelContext.CloseCode closeCode) |
static void |
Tio.close(ChannelContext channelContext,
Throwable throwable,
String remark,
boolean isNeedRemove,
boolean needCloseLock,
ChannelContext.CloseCode closeCode) |
static void |
Tio.close(ChannelContext channelContext,
Throwable throwable,
String remark,
boolean isNeedRemove,
ChannelContext.CloseCode closeCode) |
static void |
Tio.close(ChannelContext channelContext,
Throwable throwable,
String remark,
ChannelContext.CloseCode closeCode) |
static void |
Tio.closeGroup(TioConfig tioConfig,
String group,
String remark,
ChannelContext.CloseCode closeCode)
关闭某群所有连接
|
static void |
Tio.closeIp(TioConfig tioConfig,
String ip,
String remark,
ChannelContext.CloseCode closeCode)
关闭某群所有连接
|
static void |
Tio.closeSet(TioConfig tioConfig,
SetWithLock<ChannelContext> setWithLock,
String remark,
ChannelContext.CloseCode closeCode)
关闭集合
|
static void |
Tio.closeToken(TioConfig tioConfig,
String token,
String remark,
ChannelContext.CloseCode closeCode)
关闭某token的所有连接
|
static void |
Tio.closeUser(TioConfig tioConfig,
String userid,
String remark,
ChannelContext.CloseCode closeCode)
关闭某用户的所有连接
|
static void |
Tio.remove(ChannelContext channelContext,
String remark,
ChannelContext.CloseCode closeCode)
和close方法对应,只不过不再进行重连等维护性的操作
|
static void |
Tio.remove(ChannelContext channelContext,
Throwable throwable,
String remark,
ChannelContext.CloseCode closeCode)
和close方法对应,只不过不再进行重连等维护性的操作
|
static void |
Tio.remove(ServerTioConfig serverTioConfig,
String ip,
String remark,
ChannelContext.CloseCode closeCode)
删除clientip为指定值的所有连接
|
static void |
Tio.remove(TioConfig tioConfig,
String clientIp,
Integer clientPort,
Throwable throwable,
String remark,
ChannelContext.CloseCode closeCode)
删除clientip和clientPort为指定值的连接
|
static void |
Tio.removeGroup(TioConfig tioConfig,
String group,
String remark,
ChannelContext.CloseCode removeCode)
关闭某群所有连接
|
static void |
Tio.removeIp(TioConfig tioConfig,
String ip,
String remark,
ChannelContext.CloseCode removeCode)
关闭某群所有连接
|
static void |
Tio.removeSet(TioConfig tioConfig,
SetWithLock<ChannelContext> setWithLock,
String remark,
ChannelContext.CloseCode closeCode)
移除集合
|
static void |
Tio.removeToken(TioConfig tioConfig,
String token,
String remark,
ChannelContext.CloseCode removeCode)
关闭某token的所有连接
|
static void |
Tio.removeUser(TioConfig tioConfig,
String userid,
String remark,
ChannelContext.CloseCode removeCode)
关闭某用户的所有连接
|
void |
ChannelContext.setCloseCode(ChannelContext.CloseCode closeCode) |
Copyright © 2021. All rights reserved.