public abstract class AbstractRouterDistributor<T,E> extends Object implements RouterDistributor<T,E>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRouterDistributor() |
| Modifier and Type | Method and Description |
|---|---|
List<T> |
distribute(String targetServiceName,
List<T> list,
PolicyRuleItem invokeRule) |
TagItem |
getFiltedServerTagItem(PolicyRuleItem rule,
String targetServiceName) |
List<T> |
getLatestVersionList(List<T> list,
String targetServiceName) |
void |
init(Function<T,E> getIns,
Function<E,String> getVersion,
Function<E,String> getServerName,
Function<E,Map<String,String>> getProperties) |
void |
initLatestVersion(String serviceName,
List<T> list) |
void |
setRouterRuleCache(RouterRuleCache routerRuleCache) |
@Autowired public void setRouterRuleCache(RouterRuleCache routerRuleCache)
public List<T> distribute(String targetServiceName, List<T> list, PolicyRuleItem invokeRule)
distribute in interface RouterDistributor<T,E>public void init(Function<T,E> getIns, Function<E,String> getVersion, Function<E,String> getServerName, Function<E,Map<String,String>> getProperties)
init in interface RouterDistributor<T,E>public TagItem getFiltedServerTagItem(PolicyRuleItem rule, String targetServiceName)
Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.