public abstract class AbstractCometHandle extends Object implements com.ds.engine.ConnectionHandle
| 限定符和类型 | 类和说明 |
|---|---|
protected class |
AbstractCometHandle.ConnectionServer |
| 限定符和类型 | 字段和说明 |
|---|---|
protected static Map<String,Long> |
checkCommandHeart |
static Map<String,Long> |
checkHeart |
protected static Map<String,Long> |
checkTime |
protected com.ds.server.JDSClientService |
client |
static Map<String,Long> |
commandMap |
protected static Map<String,ScheduledExecutorService> |
commandServiceMap |
protected com.ds.engine.ConnectInfo |
connectInfo |
static String |
HEARTKEY |
protected boolean |
isClose |
static com.ds.common.logging.Log |
logger |
protected javax.servlet.http.HttpServletRequest |
request |
protected javax.servlet.http.HttpServletResponse |
response |
protected com.ds.engine.JDSSessionHandle |
sessionHandle |
static com.ds.common.cache.Cache<String,String> |
sessionMapUser |
| 构造器和说明 |
|---|
AbstractCometHandle(com.ds.server.JDSClientService client,
com.ds.engine.JDSSessionHandle sessionHandle,
String systemCode) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
connect(com.ds.context.JDSContext context) |
void |
disconnect() |
static Map<String,Long> |
getCheckHeart() |
com.ds.server.JDSClientService |
getClient() |
protected static ScheduledExecutorService |
getCommandService(String userId) |
com.ds.engine.ConnectInfo |
getConnectInfo() |
com.ds.engine.JDSSessionHandle |
getSessionHandle() |
String |
getSystemCode() |
boolean |
isconnect() |
static void |
main(String[] args) |
void |
reConnect() |
boolean |
repeatCommand(com.ds.common.JDSCommand command,
com.ds.engine.JDSSessionHandle handle) |
boolean |
repeatMsg(com.ds.msg.Msg msg,
com.ds.engine.JDSSessionHandle handle) |
boolean |
send(com.ds.common.JDSCommand command) |
boolean |
send(String msgString) |
static void |
setCheckHeart(Map<String,Long> checkHeart) |
void |
setConnectInfo(com.ds.engine.ConnectInfo connectInfo) |
void |
setSystemCode(String systemCode) |
protected com.ds.engine.JDSSessionHandle sessionHandle
protected com.ds.engine.ConnectInfo connectInfo
protected javax.servlet.http.HttpServletRequest request
protected javax.servlet.http.HttpServletResponse response
protected com.ds.server.JDSClientService client
protected static Map<String,ScheduledExecutorService> commandServiceMap
public static final com.ds.common.logging.Log logger
protected boolean isClose
public AbstractCometHandle(com.ds.server.JDSClientService client,
com.ds.engine.JDSSessionHandle sessionHandle,
String systemCode)
throws com.ds.common.JDSException
com.ds.common.JDSExceptionprotected static ScheduledExecutorService getCommandService(String userId)
public void disconnect()
throws com.ds.common.JDSException
disconnect 在接口中 com.ds.engine.ConnectionHandlecom.ds.common.JDSExceptionpublic void reConnect()
throws com.ds.common.JDSException
com.ds.common.JDSExceptionpublic void connect(com.ds.context.JDSContext context)
throws com.ds.common.JDSException
connect 在接口中 com.ds.engine.ConnectionHandlecom.ds.common.JDSExceptionpublic com.ds.server.JDSClientService getClient()
throws com.ds.common.JDSException
getClient 在接口中 com.ds.engine.ConnectionHandlecom.ds.common.JDSExceptionpublic com.ds.engine.JDSSessionHandle getSessionHandle()
public boolean isconnect()
throws com.ds.common.JDSException
isconnect 在接口中 com.ds.engine.ConnectionHandlecom.ds.common.JDSExceptionpublic boolean repeatCommand(com.ds.common.JDSCommand command,
com.ds.engine.JDSSessionHandle handle)
throws com.ds.common.JDSException
repeatCommand 在接口中 com.ds.engine.ConnectionHandlecom.ds.common.JDSExceptionpublic boolean repeatMsg(com.ds.msg.Msg msg,
com.ds.engine.JDSSessionHandle handle)
throws com.ds.common.JDSException
repeatMsg 在接口中 com.ds.engine.ConnectionHandlecom.ds.common.JDSExceptionpublic boolean send(com.ds.common.JDSCommand command)
throws com.ds.common.JDSException
send 在接口中 com.ds.engine.ConnectionHandlecom.ds.common.JDSExceptionpublic boolean send(String msgString) throws com.ds.common.JDSException
send 在接口中 com.ds.engine.ConnectionHandlecom.ds.common.JDSExceptionpublic com.ds.engine.ConnectInfo getConnectInfo()
getConnectInfo 在接口中 com.ds.engine.ConnectionHandlepublic void setConnectInfo(com.ds.engine.ConnectInfo connectInfo)
public String getSystemCode()
public void setSystemCode(String systemCode)
public static void main(String[] args)
Copyright © 2025 onecode. All rights reserved.