| 程序包 | 说明 |
|---|---|
| com.hyd.ssdb | |
| com.hyd.ssdb.conf | |
| com.hyd.ssdb.conn |
| 类和说明 |
|---|
| ConnectionPoolManager
ConnectionPoolManager 有两个职责:
1、管理网络的拓扑结构(通过 Sharding 类),决定请求发送到哪个 SSDB 服务器;
2、当请求发送失败时,自动更新失效的服务器列表,并尝试重新发送请求到同一
Cluster 的其他服务器,直到没有服务器可用,才抛出异常。
|
| 类和说明 |
|---|
| Connection
对 Socket 的包装。
|
| 类和说明 |
|---|
| Connection
对 Socket 的包装。
|
| ConnectionPool
连接池。
|
| ConnectionPoolFactory
根据 Server 配置创建 ConnectionPool 实例。
|
| PoolAndConnection
包含 Connection 和 ConnectionPool 的类,两者作为方法的返回值同时返回
这是为了方便 Connection 用完后,由调用者将其返回给 ConnectionPool
created at 15-12-5
|
Copyright © 2021. All rights reserved.