public class ClientChannelContext 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 |
|---|
ClientChannelContext(TioConfig tioConfig)
创建一个虚拟ChannelContext,主要用来模拟一些操作,真实场景中用得少
|
ClientChannelContext(TioConfig tioConfig,
AsynchronousSocketChannel asynchronousSocketChannel) |
| Modifier and Type | Method and Description |
|---|---|
Node |
createClientNode(AsynchronousSocketChannel asynchronousSocketChannel)
创建Node
|
String |
getBindIp() |
Integer |
getBindPort() |
AtomicInteger |
getReconnCount() |
boolean |
isServer()
是否是服务器端
|
void |
setBindIp(String bindIp) |
void |
setBindPort(Integer bindPort) |
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 ClientChannelContext(TioConfig tioConfig, AsynchronousSocketChannel asynchronousSocketChannel)
tioConfig - TioConfigasynchronousSocketChannel - AsynchronousSocketChannelpublic ClientChannelContext(TioConfig tioConfig)
tioConfig - TioConfigpublic Node createClientNode(AsynchronousSocketChannel asynchronousSocketChannel) throws IOException
ChannelContextcreateClientNode in class 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 in class ChannelContextpublic AtomicInteger getReconnCount()
Copyright © 2024. All rights reserved.