public class ServerChannelContext extends ChannelContext
ChannelContext.CloseCode, ChannelContext.CloseMetaasynchronousSocketChannel, closeLock, closeMeta, decodeRunnable, handlerRunnable, heartbeatTimeout, packetNeededLength, sendRunnable, sslFacadeContext, stat, tioConfig, UNKNOWN_ADDRESS_IP, UNKNOWN_ADDRESS_PORT_SEQ, writeCompletionHandler| Constructor and Description |
|---|
ServerChannelContext(TioConfig tioConfig)
创建一个虚拟ChannelContext,主要用来模拟一些操作,真实场景中用得少
|
ServerChannelContext(TioConfig tioConfig,
AsynchronousSocketChannel asynchronousSocketChannel) |
ServerChannelContext(TioConfig tioConfig,
String id)
创建一个虚拟ChannelContext,主要用来模拟一些操作,譬如压力测试,真实场景中用得少
|
| Modifier and Type | Method and Description |
|---|---|
Node |
createClientNode(AsynchronousSocketChannel asynchronousSocketChannel)
创建Node
|
boolean |
isServer()
是否服务端
|
assignAnUnknownClientNode, bSend, createUnknownNode, equals, getBsId, getClientNode, getCloseCode, getDecodeQueueSize, getGroups, getHandlerQueueSize, getHeartbeatTimeout, getId, getProxyClientNode, getReadBufferSize, getReadCompletionHandler, getSendQueueSize, getServerNode, getSslFacadeContext, getTioConfig, getToken, getUserId, getWriteCompletionHandler, hashCode, init, isAccepted, isBizStatus, isClosed, isLogWhenDecodeError, isReconnect, isRemoved, isVirtual, isWaitingClose, processAfterSent, send, setAccepted, setAsynchronousSocketChannel, setBizStatus, setBsId, setClientNode, setCloseCode, setClosed, setHeartbeatTimeout, setLogWhenDecodeError, setPacketNeededLength, setProxyClientNode, setReadBufferSize, setReconnect, setRemoved, setServerNode, setSslFacadeContext, setToken, setUpSSL, setUserId, setVirtual, setWaitingClose, toStringclear, computeIfAbsent, containsKey, get, remove, setclone, finalize, getClass, notify, notifyAll, wait, wait, waitget, getAndRemove, getAndRemovepublic ServerChannelContext(TioConfig tioConfig, AsynchronousSocketChannel asynchronousSocketChannel)
tioConfig - TioConfigasynchronousSocketChannel - AsynchronousSocketChannelpublic ServerChannelContext(TioConfig tioConfig)
tioConfig - TioConfigpublic Node createClientNode(AsynchronousSocketChannel asynchronousSocketChannel) throws IOException
ChannelContextcreateClientNode in class ChannelContextasynchronousSocketChannel - AsynchronousSocketChannelIOException - IOExceptionChannelContext.createClientNode(java.nio.channels.AsynchronousSocketChannel)public boolean isServer()
isServer in class ChannelContextCopyright © 2025. All rights reserved.