类 BrokerClientManager

java.lang.Object
com.iohao.game.bolt.broker.core.client.BrokerClientManager

public final class BrokerClientManager extends Object
管理 bolt client , 接收新的集群信息,并增减相关 bolt client
     BrokerClientItem 与游戏网关是 1:1 的关系,
     如果启动了 N 个网关,那么 BrokerClientManager 下的 BrokerClientItem 就会有 N 个。
 
作者:
渔民小镇
日期:
2022-05-14
  • 构造器详细资料

    • BrokerClientManager

      public BrokerClientManager()
  • 方法详细资料

    • init

      public void init()
    • register

      public void register(String address)
    • register

      public void register(BrokerClientItem brokerClientItem)
    • remove

      public void remove(String address)
    • remove

      public void remove(BrokerClientItem brokerClientItem)
    • countActiveItem

      public int countActiveItem()
    • countItem

      public int countItem()
    • next

      public BrokerClientItem next()
    • listBrokerClientItem

      public List<BrokerClientItem> listBrokerClientItem()
    • contains

      public boolean contains(String address)
    • keySet

      public Set<String> keySet()
    • forEach

      public void forEach(Consumer<BrokerClientItem> consumer)