程序包 com.walker.tcp
接口 TcpEngine
public interface TcpEngine
-
方法详细资料
-
getPort
int getPort() -
getName
String getName()返回通信引擎名字,由业务设置- 返回:
-
supportLongConnection
boolean supportLongConnection()是否支持长连接,默认支持- 返回:
-
getConnectionManager
ConnectionManager getConnectionManager()返回连接管理器,注意:该方法只有长连接时才存在- 返回:
-
start
- 抛出:
Exception
-
shutdown
- 抛出:
Exception
-
sendResponse
通过长连接,向客户端发送异步消息- 参数:
response-- 返回:
- 返回(失败)信息,返回null表示通道发送成功。
-
getStartTime
long getStartTime() -
getId
int getId()引擎ID- 返回:
-