public abstract class AbstractUDPHandle extends Object implements com.ds.engine.ConnectionHandle
| 限定符和类型 | 字段和说明 |
|---|---|
static com.ds.common.logging.Log |
logger |
String |
systemCode |
| 构造器和说明 |
|---|
AbstractUDPHandle(com.ds.server.JDSClientService client,
com.ds.engine.JDSSessionHandle sessionHandle,
String systemCode) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
connect(com.ds.context.JDSContext context) |
void |
disconnect() |
com.ds.server.JDSClientService |
getClient() |
com.ds.engine.ConnectInfo |
getConnectInfo() |
static ScheduledExecutorService |
getHandleService(String ipport) |
String |
getIp() |
Integer |
getPort() |
com.ds.engine.JDSSessionHandle |
getSessionHandle() |
String |
getSystemCode() |
JDSUDPServer |
getUdpServer() |
boolean |
isconnect() |
boolean |
repeatCommand(com.ds.common.JDSCommand command,
com.ds.engine.JDSSessionHandle handle) |
abstract boolean |
repeatMsg(com.ds.msg.Msg msg,
com.ds.engine.JDSSessionHandle handle) |
boolean |
send(com.ds.common.JDSCommand command) |
void |
setConnectInfo(com.ds.engine.ConnectInfo connectInfo) |
void |
setIp(String ip) |
void |
setPort(Integer port) |
void |
setSystemCode(String systemCode) |
public String systemCode
public static final com.ds.common.logging.Log logger
public AbstractUDPHandle(com.ds.server.JDSClientService client,
com.ds.engine.JDSSessionHandle sessionHandle,
String systemCode)
throws com.ds.common.JDSException
com.ds.common.JDSExceptionpublic JDSUDPServer getUdpServer()
public boolean send(com.ds.common.JDSCommand command)
throws com.ds.common.JDSException
send 在接口中 com.ds.engine.ConnectionHandlecom.ds.common.JDSExceptionpublic static ScheduledExecutorService getHandleService(String ipport)
public void disconnect()
throws com.ds.common.JDSException
disconnect 在接口中 com.ds.engine.ConnectionHandlecom.ds.common.JDSExceptionpublic void connect(com.ds.context.JDSContext context)
throws com.ds.common.JDSException
connect 在接口中 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 abstract 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 isconnect()
throws com.ds.common.JDSException
isconnect 在接口中 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 String getIp()
public void setIp(String ip)
public Integer getPort()
public void setPort(Integer port)
public 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)
Copyright © 2025 onecode. All rights reserved.