public class ClientTioConfig extends TioConfig
| Modifier and Type | Field and Description |
|---|---|
SetWithLock<ChannelContext> |
closeds |
SetWithLock<ChannelContext> |
connecteds |
protected ReconnConf |
reconnConf |
ALL_CLIENT_GROUPCONTEXTS, ALL_GROUPCONTEXTS, ALL_SERVER_GROUPCONTEXTS, bsIds, clientNodes, closeRunnable, connections, debug, groupExecutor, groups, groupStat, heartbeatTimeout, id, ids, ipBlacklist, ips, ipStats, isShortConnection, logWhenDecodeError, maxDecodeErrorCountForIp, name, packetConverter, packetHandlerMode, READ_BUFFER_SIZE, sslConfig, startTime, statOn, tioExecutor, tokens, useQueueDecode, useQueueSend, users, waitingResps| Constructor and Description |
|---|
ClientTioConfig(ClientAioHandler aioHandler,
ClientAioListener aioListener)
不重连
|
ClientTioConfig(ClientAioHandler aioHandler,
ClientAioListener aioListener,
ReconnConf reconnConf) |
ClientTioConfig(ClientAioHandler aioHandler,
ClientAioListener aioListener,
ReconnConf reconnConf,
SynThreadPoolExecutor tioExecutor,
ThreadPoolExecutor groupExecutor) |
| Modifier and Type | Method and Description |
|---|---|
AioHandler |
getAioHandler()
获取AioHandler对象
|
AioListener |
getAioListener()
获取AioListener对象
|
ClientAioHandler |
getClientAioHandler() |
ClientAioListener |
getClientAioListener() |
ConnectionCompletionHandler |
getConnectionCompletionHandler() |
ReconnConf |
getReconnConf() |
boolean |
isServer()
是服务器端还是客户端
|
void |
setClientAioHandler(ClientAioHandler clientAioHandler) |
void |
setClientAioListener(ClientAioListener clientAioListener) |
void |
setConnectionCompletionHandler(ConnectionCompletionHandler connectionCompletionHandler) |
void |
setReconnConf(ReconnConf reconnConf) |
String |
toString() |
void |
useSsl()
使用ssl访问
|
getByteOrder, getGroupListener, getGroupStat, getId, getIpStatListener, getName, getReadBufferSize, getTioUuid, getWaitingResps, isSsl, isStopped, setByteOrder, setGroupListener, setHeartbeatTimeout, setIpStatListener, setName, setPacketHandlerMode, setReadBufferSize, setShortConnection, setSslConfig, setStopped, setTioUuid, setUseQueueDecode, setUseQueueSendclear, clearAttribute, get, getAttribute, remove, removeAttribute, set, setAttributeprotected ReconnConf reconnConf
public final SetWithLock<ChannelContext> connecteds
public final SetWithLock<ChannelContext> closeds
public ClientTioConfig(ClientAioHandler aioHandler, ClientAioListener aioListener)
aioHandler - aioListener - public ClientTioConfig(ClientAioHandler aioHandler, ClientAioListener aioListener, ReconnConf reconnConf)
aioHandler - aioListener - reconnConf - 不用框架自动重连,就传nullpublic ClientTioConfig(ClientAioHandler aioHandler, ClientAioListener aioListener, ReconnConf reconnConf, SynThreadPoolExecutor tioExecutor, ThreadPoolExecutor groupExecutor)
aioHandler - aioListener - reconnConf - 不用框架自动重连,就传nulltioExecutor - groupExecutor - public AioHandler getAioHandler()
TioConfiggetAioHandler in class TioConfigTioConfig.getAioHandler()public AioListener getAioListener()
TioConfiggetAioListener in class TioConfigTioConfig.getAioListener()public ClientAioHandler getClientAioHandler()
public ClientAioListener getClientAioListener()
public ConnectionCompletionHandler getConnectionCompletionHandler()
public void setClientAioHandler(ClientAioHandler clientAioHandler)
clientAioHandler - the clientAioHandler to setpublic void setClientAioListener(ClientAioListener clientAioListener)
clientAioListener - the clientAioListener to setpublic void setConnectionCompletionHandler(ConnectionCompletionHandler connectionCompletionHandler)
connectionCompletionHandler - the connectionCompletionHandler to setpublic void setReconnConf(ReconnConf reconnConf)
reconnConf - the reconnConf to setpublic ReconnConf getReconnConf()
public boolean isServer()
TioConfigCopyright © 2021. All rights reserved.