public class TioClientConfig extends TioConfig
| 限定符和类型 | 字段和说明 |
|---|---|
Set<ChannelContext> |
closeds |
Set<ChannelContext> |
connecteds |
protected ReconnConf |
reconnConf
重连配置
|
ALL_CLIENT_GROUPCONTEXTS, ALL_GROUPCONTEXTS, ALL_SERVER_GROUPCONTEXTS, bsIds, clientNodes, closeRunnable, connections, debug, groupExecutor, groups, groupStat, heartbeatTimeout, id, ids, isShortConnection, logWhenDecodeError, maxDecodeFailCount, name, packetConverter, packetHandlerMode, READ_BUFFER_SIZE, sslConfig, startTime, statOn, tioExecutor, tokens, useQueueDecode, useQueueSend, users, waitingResps| 构造器和说明 |
|---|
TioClientConfig(TioClientHandler tioHandler,
TioClientListener tioListener)
不重连
|
TioClientConfig(TioClientHandler tioHandler,
TioClientListener tioListener,
ReconnConf reconnConf) |
TioClientConfig(TioClientHandler tioHandler,
TioClientListener tioListener,
ReconnConf reconnConf,
SynThreadPoolExecutor tioExecutor,
ThreadPoolExecutor groupExecutor) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
ConnectionCompletionHandler |
getConnectionCompletionHandler() |
ReconnConf |
getReconnConf() |
TimerTaskService |
getTaskService() |
TioClientHandler |
getTioClientHandler() |
TioClientListener |
getTioClientListener() |
TioHandler |
getTioHandler()
获取TioHandler对象
|
TioListener |
getTioListener()
获取TioListener对象
|
int |
hashCode() |
boolean |
isServer()
是服务器端还是客户端
|
void |
setReconnConf(ReconnConf reconnConf) |
void |
setTaskService(TimerTaskService taskService) |
void |
setTioClientHandler(TioClientHandler tioClientHandler) |
void |
setTioClientListener(TioClientListener tioClientListener) |
String |
toString() |
void |
useSsl()
使用ssl访问
|
getByteOrder, getGroupListener, getGroupStat, getId, getName, getReadBufferSize, getTioUuid, getWaitingResps, isSsl, isStopped, setByteOrder, setGroupListener, setHeartbeatTimeout, setName, setPacketHandlerMode, setReadBufferSize, setShortConnection, setSslConfig, setStopped, setTioUuid, setUseQueueDecode, setUseQueueSendclear, computeIfAbsent, containsKey, get, remove, setpublic final Set<ChannelContext> connecteds
public final Set<ChannelContext> closeds
protected ReconnConf reconnConf
public TioClientConfig(TioClientHandler tioHandler, TioClientListener tioListener)
tioHandler - TioClientHandlertioListener - TioClientListenerpublic TioClientConfig(TioClientHandler tioHandler, TioClientListener tioListener, ReconnConf reconnConf)
tioHandler - TioClientHandlertioListener - TioClientListenerreconnConf - 不用框架自动重连,就传nullpublic TioClientConfig(TioClientHandler tioHandler, TioClientListener tioListener, ReconnConf reconnConf, SynThreadPoolExecutor tioExecutor, ThreadPoolExecutor groupExecutor)
tioHandler - TioClientHandlertioListener - TioClientListenerreconnConf - 不用框架自动重连,就传nulltioExecutor - SynThreadPoolExecutorgroupExecutor - ThreadPoolExecutorpublic void useSsl()
public TioHandler getTioHandler()
TioConfiggetTioHandler 在类中 TioConfigTioConfig.getTioHandler()public TioListener getTioListener()
TioConfiggetTioListener 在类中 TioConfigTioConfig.getTioListener()public TioClientHandler getTioClientHandler()
public void setTioClientHandler(TioClientHandler tioClientHandler)
tioClientHandler - the tioClientHandler to setpublic TioClientListener getTioClientListener()
public void setTioClientListener(TioClientListener tioClientListener)
tioClientListener - the tioClientListener to setpublic ConnectionCompletionHandler getConnectionCompletionHandler()
public ReconnConf getReconnConf()
public void setReconnConf(ReconnConf reconnConf)
reconnConf - the reconnConf to setpublic TimerTaskService getTaskService()
public void setTaskService(TimerTaskService taskService)
Copyright © 2023. All rights reserved.