| 程序包 | 说明 |
|---|---|
| org.noear.socketd.cluster | |
| org.noear.socketd.transport.client | |
| org.noear.socketd.transport.core | |
| org.noear.socketd.transport.core.impl |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ClusterClientSession
集群客户端会话
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <T extends ClientSession> |
LoadBalancer.getAny(Collection<T> coll,
Supplier<Integer> randomSupplier)
获取任意一个
|
static <T extends ClientSession> |
LoadBalancer.getAnyByHash(Collection<T> coll,
String diversion)
根据 hash 获取任意一个
|
static <T extends ClientSession> |
LoadBalancer.getAnyByPoll(Collection<T> coll)
根据 poll 获取任意一个
|
static <T extends ClientSession> |
LoadBalancer.getFirst(Collection<T> coll)
获取第一个
|
| 限定符和类型 | 方法和说明 |
|---|---|
ClientSession |
ClusterClientSession.getSessionAny(String diversionOrNull)
获取任意一个会话
|
ClientSession |
ClusterClientSession.getSessionOne()
已过时。
2.3
|
ClientSession |
ClusterClient.open()
打开会话
|
ClientSession |
ClusterClient.openOrThow()
打开会话或出异常
|
| 限定符和类型 | 方法和说明 |
|---|---|
List<ClientSession> |
ClusterClientSession.getSessionAll()
获取所有会话
|
| 构造器和说明 |
|---|
ClusterClientSession(List<ClientSession> sessions) |
| 限定符和类型 | 方法和说明 |
|---|---|
ClientSession |
ClientBase.open()
打开会话
|
ClientSession |
Client.open()
打开会话
|
ClientSession |
ClientBase.openOrThow()
打开会话或出异常
|
ClientSession |
Client.openOrThow()
打开会话或出异常(即要求第一次是连接成功的)
|
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
Session
会话
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
SessionBase
会话基类
|
class |
SessionDefault
会话默认实现
|
Copyright © 2024. All rights reserved.