| 程序包 | 说明 |
|---|---|
| org.tio.core |
| 限定符和类型 | 方法和说明 |
|---|---|
static ChannelContext.CloseCode |
ChannelContext.CloseCode.from(Byte value) |
ChannelContext.CloseCode |
ChannelContext.getCloseCode() |
static ChannelContext.CloseCode |
ChannelContext.CloseCode.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ChannelContext.CloseCode[] |
ChannelContext.CloseCode.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.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为指定值的连接
|
void |
ChannelContext.setCloseCode(ChannelContext.CloseCode closeCode) |
Copyright © 2019. All rights reserved.