接口 BrokerClientRegion
public interface BrokerClientRegion
负载均衡,相同业务模块(逻辑服)的信息域
 
     即同一个业务模块起了N个服务(来负载)
 - 作者:
 - 渔民小镇
 - 日期:
 - 2022-05-16
 
- 
方法概要
修饰符和类型方法说明voidadd(BrokerClientProxy brokerClientProxy) 添加逻辑服default intcount()当前逻辑服域有多少个逻辑服default voiddoAnything(Object value) doAnythinggetBrokerClientProxy(HeadMetadata headMetadata) 根据请求元信息得到一个 逻辑服BrokerClientProxy mapgetTag()tagdefault Collection<BrokerClientProxy> 域下的所有 逻辑服voidremove(int id) 根据 id 删除逻辑服 
- 
方法详细资料
- 
getTag
String getTag()tag- 返回:
 - tag
 
 - 
count
default int count()当前逻辑服域有多少个逻辑服- 返回:
 - 统计
 
 - 
add
添加逻辑服- 参数:
 brokerClientProxy- 逻辑服信息
 - 
getBrokerClientProxy
根据请求元信息得到一个 逻辑服- 参数:
 headMetadata- 请求元信息- 返回:
 - 逻辑服信息
 
 - 
getBrokerClientProxyMap
Map<Integer,BrokerClientProxy> getBrokerClientProxyMap()BrokerClientProxy map- 返回:
 - map
 
 - 
listBrokerClientProxy
域下的所有 逻辑服- 返回:
 - 逻辑服列表
 
 - 
remove
void remove(int id) 根据 id 删除逻辑服- 参数:
 id- id
 - 
doAnything
doAnything- 参数:
 value- value
 
 -