提交 abbe8b1a 编写于 作者: A Allen Wang

add APIs to get/set server list filters.

上级 ef4c7bc1
......@@ -48,14 +48,18 @@ public class DynamicServerListLoadBalancer<T extends Server> extends BaseLoadBal
volatile ServerListFilter<T> filter;
NiwsClientConfig niwsClientConfig;
NiwsClientConfig niwsClientConfig;
public static final String DEFAULT_SEVER_LIST_CLASS = "com.netflix.niws.client.DiscoveryEnabledNIWSServerList";
public DynamicServerListLoadBalancer(){
super();
}
public DynamicServerListLoadBalancer(NiwsClientConfig niwsClientConfig){
initWithNiwsConfig(niwsClientConfig);
}
@Override
public void initWithNiwsConfig(NiwsClientConfig niwsClientConfig) {
......@@ -137,6 +141,16 @@ public class DynamicServerListLoadBalancer<T extends Server> extends BaseLoadBal
this.rule = rule;
}
public ServerListFilter<T> getFilter() {
return filter;
}
public void setFilter(ServerListFilter<T> filter) {
this.filter = filter;
}
@Override
/**
* Makes no sense to ping an inmemory disc client
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册