类 BrokerClientManager
java.lang.Object
com.iohao.game.bolt.broker.core.client.BrokerClientManager
管理 bolt client , 接收新的集群信息,并增减相关 bolt client
BrokerClientItem 与游戏网关是 1:1 的关系, 如果启动了 N 个网关,那么 BrokerClientManager 下的 BrokerClientItem 就会有 N 个。
- 作者:
- 渔民小镇
- 日期:
- 2022-05-14
-
构造器概要
-
方法概要
修饰符和类型方法说明boolean
int
int
void
forEach
(Consumer<BrokerClientItem> consumer) void
init()
keySet()
next()
void
register
(BrokerClientItem brokerClientItem) void
void
remove
(BrokerClientItem brokerClientItem) void
-
构造器详细资料
-
BrokerClientManager
public BrokerClientManager()
-
-
方法详细资料
-
init
public void init() -
register
-
register
-
remove
-
remove
-
countActiveItem
public int countActiveItem() -
countItem
public int countItem() -
next
-
listBrokerClientItem
-
contains
-
keySet
-
forEach
-