| 程序包 | 说明 |
|---|---|
| com.ds.client | |
| com.ds.cluster.udp | |
| com.ds.engine | |
| com.ds.server |
| 限定符和类型 | 方法和说明 |
|---|---|
JDSSessionHandle |
JDSSessionFactory.createSessionHandle()
创建一个SessionHandle
|
JDSSessionHandle |
JDSSessionFactory.getSessionHandle()
根据request参数取得SessionHandle
|
JDSSessionHandle |
JDSSessionFactory.getSessionHandleBySessionId(String sessionId)
创建一个SessionHandle
|
static JDSSessionHandle |
JDSSessionFactory.newSessionHandle(String sessionId)
创建一个SessionHandle
|
| 限定符和类型 | 方法和说明 |
|---|---|
JDSClientService |
JDSSessionFactory.newClientService(JDSSessionHandle sessionHandle,
ConfigCode configCode)
获取客户端接口实现类的方法。
|
| 限定符和类型 | 方法和说明 |
|---|---|
JDSSessionHandle |
ClusterCommand.getSessionHandle() |
JDSSessionHandle |
ClusterEvent.getSessionHandle() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ClusterCommand.setSessionHandle(JDSSessionHandle sessionHandle) |
void |
ClusterEvent.setSessionHandle(JDSSessionHandle sessionHandle) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
ConnectionHandle.repeatCommand(JDSCommand command,
JDSSessionHandle handle)
转发命令
|
boolean |
DefaultConnectionHandle.repeatCommand(JDSCommand command,
JDSSessionHandle handle) |
boolean |
ConnectionHandle.repeatMsg(Msg msg,
JDSSessionHandle handle)
转发消息
|
boolean |
DefaultConnectionHandle.repeatMsg(Msg msg,
JDSSessionHandle handle) |
| 构造器和说明 |
|---|
DefaultConnectionHandle(JDSClientService client,
JDSSessionHandle sessionHandle,
ConfigCode configCode) |
| 限定符和类型 | 方法和说明 |
|---|---|
JDSSessionHandle |
JDSServer.connect(JDSClientService clientService)
处理登陆JDS服务器的方法
|
JDSSessionHandle |
JDSClientService.getSessionHandle()
取得SessionHandle
|
JDSSessionHandle |
JDSClientServiceImpl.getSessionHandle() |
| 限定符和类型 | 方法和说明 |
|---|---|
Set<JDSSessionHandle> |
JDSServer.getJDSSessionHandlist(ConnectInfo connectInfo) |
Cache<String,JDSSessionHandle> |
JDSServer.getSessionHandleCache() |
Set<JDSSessionHandle> |
JDSServer.getSessionHandleList(ConnectInfo connectInfo)
保证每次取得的列表是最新的
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
JDSServer.activeSession(JDSSessionHandle sessionHandle) |
void |
JDSServer.disconnect(JDSSessionHandle sessionHandle)
处理注销JDS服务器的方法
|
ConnectInfo |
JDSServer.getConnectInfo(JDSSessionHandle handle) |
JDSClientService |
JDSServer.getJDSClientService(JDSSessionHandle sessionHandle,
ConfigCode configCode)
用于根据连接的Session信息以及应用的标识取得JDSClientService实例的方法。
|
JDSClientService |
JDSServer.newJDSClientService(JDSSessionHandle sessionHandle,
ConfigCode configCode)
用于新建jdsClientService实例的方法。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
JDSServer.invalidateSession(List<JDSSessionHandle> sessionHandleList) |
void |
JDSServer.updateHandle(ConnectInfo connectInfo,
Set<JDSSessionHandle> sessionHandleList) |
Copyright © 2023 onecode. All rights reserved.