public abstract class TioConfig extends Object
| Constructor and Description |
|---|
TioConfig() |
TioConfig(SynThreadPoolExecutor tioExecutor,
ExecutorService groupExecutor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
ByteOrder |
getByteOrder() |
GroupListener |
getGroupListener() |
GroupStat |
getGroupStat() |
HeartbeatMode |
getHeartbeatMode() |
String |
getId() |
String |
getName() |
int |
getReadBufferSize() |
abstract StatVo |
getStat()
获取统计数据
|
abstract TioHandler |
getTioHandler()
获取TioHandler对象
|
abstract TioListener |
getTioListener()
获取TioListener对象
|
TioUuid |
getTioUuid() |
Map<Integer,Packet> |
getWaitingResps() |
int |
hashCode() |
abstract boolean |
isServer()
是服务器端还是客户端
|
boolean |
isSsl() |
boolean |
isStopped() |
void |
remove()
停止时删除客户端
|
void |
setByteOrder(ByteOrder byteOrder) |
void |
setGroupListener(GroupListener groupListener) |
void |
setHeartbeatMode(HeartbeatMode heartbeatMode) |
void |
setHeartbeatTimeout(long heartbeatTimeout) |
void |
setName(String name) |
void |
setPacketHandlerMode(PacketHandlerMode packetHandlerMode) |
void |
setReadBufferSize(int readBufferSize) |
void |
setShortConnection(boolean isShortConnection) |
void |
setSslConfig(SslConfig sslConfig) |
void |
setStopped(boolean isStopped) |
void |
setTioUuid(TioUuid tioUuid) |
void |
setUseQueueDecode(boolean useQueueDecode)
是否用队列解码(系统初始化时确定该值,中途不要变更此值,否则在切换的时候可能导致消息丢失
|
void |
setUseQueueSend(boolean useQueueSend)
是否用队列发送,可以随时切换
|
public static final int READ_BUFFER_SIZE
public static final Set<TioServerConfig> ALL_SERVER_GROUP_CONTEXTS
public static final Set<TioClientConfig> ALL_CLIENT_GROUP_CONTEXTS
public static final long DEFAULT_HEARTBEAT_TIMEOUT
public final String id
public boolean isShortConnection
public SslConfig sslConfig
public boolean debug
public GroupStat groupStat
public boolean statOn
public PacketConverter packetConverter
public long startTime
public boolean useQueueSend
public boolean useQueueDecode
public long heartbeatTimeout
public boolean logWhenDecodeError
public PacketHandlerMode packetHandlerMode
public SynThreadPoolExecutor tioExecutor
public CloseRunnable closeRunnable
public ExecutorService groupExecutor
public ClientNodes clientNodes
public Set<ChannelContext> connections
public Groups groups
public Users users
public Tokens tokens
public Ids ids
public BsIds bsIds
public int maxDecodeFailCount
public ConcurrentMap<Integer,Packet> waitingResps
protected String name
public TioConfig()
public TioConfig(SynThreadPoolExecutor tioExecutor, ExecutorService groupExecutor)
tioExecutor - tioExecutorgroupExecutor - groupExecutorpublic abstract TioHandler getTioHandler()
public abstract TioListener getTioListener()
public ByteOrder getByteOrder()
public void setByteOrder(ByteOrder byteOrder)
byteOrder - ByteOrderpublic GroupListener getGroupListener()
public void setGroupListener(GroupListener groupListener)
groupListener - the groupListener to setpublic String getId()
public String getName()
public void setName(String name)
public TioUuid getTioUuid()
public void setTioUuid(TioUuid tioUuid)
tioUuid - the tioUuid to setpublic boolean isStopped()
public void setStopped(boolean isStopped)
isStopped - the isStop to setpublic void setHeartbeatTimeout(long heartbeatTimeout)
heartbeatTimeout - the heartbeatTimeout to setpublic HeartbeatMode getHeartbeatMode()
public void setHeartbeatMode(HeartbeatMode heartbeatMode)
public void setPacketHandlerMode(PacketHandlerMode packetHandlerMode)
packetHandlerMode - the packetHandlerMode to setpublic void setShortConnection(boolean isShortConnection)
isShortConnection - the isShortConnection to setpublic void setSslConfig(SslConfig sslConfig)
public GroupStat getGroupStat()
public void setUseQueueDecode(boolean useQueueDecode)
useQueueDecode - useQueueDecodepublic void setUseQueueSend(boolean useQueueSend)
useQueueSend - useQueueSendpublic abstract boolean isServer()
public abstract StatVo getStat()
public int getReadBufferSize()
public void setReadBufferSize(int readBufferSize)
readBufferSize - the readBufferSize to setpublic boolean isSsl()
public void remove()
Copyright © 2025. All rights reserved.