public class ClientChannelContext 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| 构造器和说明 |
|---|
ClientChannelContext(TioConfig tioConfig)
创建一个虚拟ChannelContext,主要用来模拟一些操作,真实场景中用得少
|
ClientChannelContext(TioConfig tioConfig,
AsynchronousSocketChannel asynchronousSocketChannel) |
| 限定符和类型 | 方法和说明 |
|---|---|
Node |
createClientNode(AsynchronousSocketChannel asynchronousSocketChannel)
创建Node
|
String |
getBindIp() |
Integer |
getBindPort() |
AtomicInteger |
getReconnCount() |
boolean |
isServer()
是否是服务器端
|
void |
setBindIp(String bindIp) |
void |
setBindPort(Integer bindPort) |
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 ClientChannelContext(TioConfig tioConfig, AsynchronousSocketChannel asynchronousSocketChannel)
tioConfig - TioConfigasynchronousSocketChannel - AsynchronousSocketChannelpublic ClientChannelContext(TioConfig tioConfig)
tioConfig - TioConfigpublic Node createClientNode(AsynchronousSocketChannel asynchronousSocketChannel) throws IOException
ChannelContextcreateClientNode 在类中 ChannelContextasynchronousSocketChannel - AsynchronousSocketChannelIOException - IOExceptionChannelContext.createClientNode(java.nio.channels.AsynchronousSocketChannel)public String getBindIp()
public void setBindIp(String bindIp)
bindIp - the bindIp to setpublic Integer getBindPort()
public void setBindPort(Integer bindPort)
bindPort - the bindPort to setpublic boolean isServer()
ChannelContextisServer 在类中 ChannelContextpublic AtomicInteger getReconnCount()
Copyright © 2023. All rights reserved.