public class CloudLoadBalanceFactory extends java.lang.Object implements LoadBalance.Factory
构造器和说明 |
---|
CloudLoadBalanceFactory() |
限定符和类型 | 方法和说明 |
---|---|
int |
count()
负载均衡数量
|
LoadBalance |
create(java.lang.String service)
创建负载均衡
|
LoadBalance |
create(java.lang.String group,
java.lang.String service)
创建负载均衡
|
void |
forEach(java.util.function.BiConsumer<java.lang.String,CloudLoadBalance> action)
负载均衡遍历
|
CloudLoadBalance |
get(java.lang.String service)
获取负载均衡
|
CloudLoadBalance |
get(java.lang.String group,
java.lang.String service)
获取负载均衡
|
void |
register(java.lang.String group,
java.lang.String service,
Discovery discovery)
注册负载均衡
|
public CloudLoadBalance get(java.lang.String service)
public CloudLoadBalance get(java.lang.String group, java.lang.String service)
public int count()
public void forEach(java.util.function.BiConsumer<java.lang.String,CloudLoadBalance> action)
public LoadBalance create(java.lang.String service)
public LoadBalance create(java.lang.String group, java.lang.String service)
create
在接口中 LoadBalance.Factory
public void register(java.lang.String group, java.lang.String service, Discovery discovery)