public class TioClientConfig extends TioConfig
| Modifier and Type | Field and Description |
|---|---|
Set<ChannelContext> |
closeds |
Set<ChannelContext> |
connecteds |
protected ReconnConf |
reconnConf
重连配置
|
ALL_CLIENT_GROUP_CONTEXTS, ALL_GROUP_CONTEXTS, ALL_SERVER_GROUP_CONTEXTS, bsIds, clientNodes, closeRunnable, connections, debug, DEFAULT_HEARTBEAT_TIMEOUT, groupExecutor, groups, groupStat, heartbeatTimeout, id, ids, isShortConnection, logWhenDecodeError, maxDecodeFailCount, name, packetConverter, packetHandlerMode, READ_BUFFER_SIZE, sslConfig, startTime, statOn, tioExecutor, tokens, useQueueDecode, useQueueSend, users, waitingResps| Constructor and Description |
|---|
TioClientConfig(TioClientHandler tioHandler,
TioClientListener tioListener)
不重连
|
TioClientConfig(TioClientHandler tioHandler,
TioClientListener tioListener,
ReconnConf reconnConf) |
TioClientConfig(TioClientHandler tioHandler,
TioClientListener tioListener,
ReconnConf reconnConf,
SynThreadPoolExecutor tioExecutor,
ExecutorService groupExecutor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
ConnectionCompletionHandler |
getConnectionCompletionHandler() |
ReconnConf |
getReconnConf() |
StatVo |
getStat()
获取统计数据
|
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, getHeartbeatMode, getId, getName, getReadBufferSize, getTioUuid, getWaitingResps, isSsl, isStopped, remove, setByteOrder, setGroupListener, setHeartbeatMode, setHeartbeatTimeout, setName, setPacketHandlerMode, setReadBufferSize, setShortConnection, setSslConfig, setStopped, setTioUuid, setUseQueueDecode, setUseQueueSendpublic 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, ExecutorService groupExecutor)
tioHandler - TioClientHandlertioListener - TioClientListenerreconnConf - 不用框架自动重连,就传nulltioExecutor - SynThreadPoolExecutorgroupExecutor - ThreadPoolExecutorpublic void useSsl()
public TioHandler getTioHandler()
TioConfiggetTioHandler in class TioConfigTioConfig.getTioHandler()public TioListener getTioListener()
TioConfiggetTioListener in class 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)
public boolean isServer()
TioConfigCopyright © 2024. All rights reserved.