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