public class ServerChannelContext extends ChannelContext
ChannelContext.CloseCode, ChannelContext.CloseMetaasynchronousSocketChannel, closeLock, closeMeta, decodeRunnable, handlerRunnable, heartbeatTimeout, isClosed, isReconnect, isRemoved, isVirtual, isWaitingClose, logWhenDecodeError, packetNeededLength, sendRunnable, sslFacadeContext, stat, tioConfig, UNKNOWN_ADDRESS_IP, UNKNOWN_ADDRESS_PORT_SEQ, writeCompletionHandler| 构造器和说明 |
|---|
ServerChannelContext(TioConfig tioConfig)
创建一个虚拟ChannelContext,主要用来模拟一些操作,真实场景中用得少
|
ServerChannelContext(TioConfig tioConfig,
AsynchronousSocketChannel asynchronousSocketChannel) |
ServerChannelContext(TioConfig tioConfig,
String id)
创建一个虚拟ChannelContext,主要用来模拟一些操作,譬如压力测试,真实场景中用得少
|
| 限定符和类型 | 方法和说明 |
|---|---|
Node |
createClientNode(AsynchronousSocketChannel asynchronousSocketChannel)
创建Node
|
boolean |
isServer()
是否服务端
|
assignAnUnknownClientNode, createUnknownNode, equals, getBsId, getClientNode, getCloseCode, getGroups, getHeartbeatTimeout, getId, getProxyClientNode, getReadBufferSize, getReadCompletionHandler, getServerNode, getTioConfig, getToken, getUserId, getWriteCompletionHandler, hashCode, init, processAfterSent, setAsynchronousSocketChannel, setBsId, setClientNode, setCloseCode, setClosed, setHeartbeatTimeout, setPacketNeededLength, setProxyClientNode, setReadBufferSize, setReconnect, setRemoved, setServerNode, setSslFacadeContext, setTioConfig, setToken, setUserId, toStringclear, computeIfAbsent, containsKey, get, remove, setpublic ServerChannelContext(TioConfig tioConfig, AsynchronousSocketChannel asynchronousSocketChannel)
tioConfig - TioConfigasynchronousSocketChannel - AsynchronousSocketChannelpublic ServerChannelContext(TioConfig tioConfig)
tioConfig - TioConfigpublic Node createClientNode(AsynchronousSocketChannel asynchronousSocketChannel) throws IOException
ChannelContextcreateClientNode 在类中 ChannelContextasynchronousSocketChannel - AsynchronousSocketChannelIOException - IOExceptionChannelContext.createClientNode(java.nio.channels.AsynchronousSocketChannel)public boolean isServer()
isServer 在类中 ChannelContextCopyright © 2023. All rights reserved.