public class DefaultConnectionHandle extends Object implements ConnectionHandle
| 构造器和说明 |
|---|
DefaultConnectionHandle(JDSClientService client,
JDSSessionHandle sessionHandle,
ConfigCode configCode) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
connect(JDSContext context)
挂接链接
|
void |
disconnect()
注销
|
JDSClientService |
getClient()
获取应用客户端
|
ConnectInfo |
getConnectInfo()
获取链接用户信息
|
boolean |
isconnect()
是否已连接
|
void |
receive(String receiveStr)
接收返回值
|
boolean |
repeatCommand(JDSCommand command,
JDSSessionHandle handle)
转发命令
|
boolean |
repeatMsg(Msg msg,
JDSSessionHandle handle)
转发消息
|
boolean |
send(JDSCommand command)
发送消息
|
boolean |
send(String msgStr)
发送消息
|
public DefaultConnectionHandle(JDSClientService client, JDSSessionHandle sessionHandle, ConfigCode configCode)
public JDSClientService getClient() throws JDSException
ConnectionHandlegetClient 在接口中 ConnectionHandleJDSExceptionpublic ConnectInfo getConnectInfo()
ConnectionHandlegetConnectInfo 在接口中 ConnectionHandlepublic void connect(JDSContext context) throws JDSException
ConnectionHandleconnect 在接口中 ConnectionHandleJDSExceptionpublic boolean isconnect()
throws JDSException
ConnectionHandleisconnect 在接口中 ConnectionHandleJDSExceptionpublic void disconnect()
throws JDSException
ConnectionHandledisconnect 在接口中 ConnectionHandleJDSExceptionpublic void receive(String receiveStr) throws JDSException
ConnectionHandlereceive 在接口中 ConnectionHandleJDSExceptionpublic boolean send(String msgStr) throws JDSException
ConnectionHandlesend 在接口中 ConnectionHandleJDSExceptionpublic boolean repeatMsg(Msg msg, JDSSessionHandle handle) throws JDSException
ConnectionHandlerepeatMsg 在接口中 ConnectionHandleJDSExceptionpublic boolean repeatCommand(JDSCommand command, JDSSessionHandle handle) throws JDSException
ConnectionHandlerepeatCommand 在接口中 ConnectionHandleJDSExceptionpublic boolean send(JDSCommand command) throws JDSException
ConnectionHandlesend 在接口中 ConnectionHandleJDSExceptionCopyright © 2023 onecode. All rights reserved.