public class ImConfig extends Object
Modifier and Type | Field and Description |
---|---|
static ImCluster |
cluster
集群配置
如果此值不为null,就表示要集群
|
static org.tio.core.GroupContext |
groupContext
全局群组上下文;
|
static String |
isCluster
是否开启集群;
|
static String |
isStore
是否开启持久化;
|
Constructor and Description |
---|
ImConfig(String bindIp,
Integer bindPort) |
Modifier and Type | Method and Description |
---|---|
String |
getBindIp() |
Integer |
getBindPort() |
long |
getHeartbeatTimeout() |
HttpConfig |
getHttpConfig() |
org.tio.core.intf.GroupListener |
getImGroupListener() |
static IMesssageHelper |
getMessageHelper() |
long |
getReadBufferSize() |
WsServerConfig |
getWsServerConfig() |
void |
setBindIp(String bindIp) |
void |
setBindPort(Integer bindPort) |
void |
setHeartbeatTimeout(long heartbeatTimeout) |
void |
setHttpConfig(HttpConfig httpConfig) |
void |
setImGroupListener(org.tio.core.intf.GroupListener imGroupListener) |
static void |
setMessageHelper(IMesssageHelper helper) |
void |
setReadBufferSize(long readBufferSize) |
void |
setWsServerConfig(WsServerConfig wsServerConfig) |
public static org.tio.core.GroupContext groupContext
public static String isStore
public static String isCluster
public static ImCluster cluster
public String getBindIp()
public void setBindIp(String bindIp)
public Integer getBindPort()
public void setBindPort(Integer bindPort)
public long getHeartbeatTimeout()
public void setHeartbeatTimeout(long heartbeatTimeout)
public HttpConfig getHttpConfig()
public void setHttpConfig(HttpConfig httpConfig)
public WsServerConfig getWsServerConfig()
public void setWsServerConfig(WsServerConfig wsServerConfig)
public static IMesssageHelper getMessageHelper()
public static void setMessageHelper(IMesssageHelper helper)
public long getReadBufferSize()
public void setReadBufferSize(long readBufferSize)
public org.tio.core.intf.GroupListener getImGroupListener()
public void setImGroupListener(org.tio.core.intf.GroupListener imGroupListener)
Copyright © 2018. All rights reserved.