public abstract class MeshRuleRouter<T> extends AbstractStateRouter<T> implements MeshRuleListener
| 构造器和说明 |
|---|
MeshRuleRouter(org.apache.dubbo.common.URL url) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clearRule(String appName) |
BitList<Invoker<T>> |
getInvokerList()
已过时。
|
MeshRuleCache<T> |
getMeshRuleCache()
已过时。
|
Set<String> |
getRemoteAppName()
已过时。
|
void |
notify(BitList<Invoker<T>> invokers)
Notify the router the invoker list.
|
void |
onRuleChange(String appName,
List<Map<String,Object>> rules) |
void |
stop() |
buildSnapshot, getNextRouter, getRuleRepository, getUrl, isForce, isRuntime, route, setForce, setNextRouter, setUrlruleSuffixpublic void notify(BitList<Invoker<T>> invokers)
StateRouterStateRouter.route(BitList, URL, Invocation, boolean, Holder) gets called.
No need to notify next node.notify 在接口中 StateRouter<T>notify 在类中 AbstractStateRouter<T>invokers - invoker listpublic void onRuleChange(String appName, List<Map<String,Object>> rules)
onRuleChange 在接口中 MeshRuleListenerpublic void clearRule(String appName)
clearRule 在接口中 MeshRuleListenerpublic void stop()
stop 在接口中 StateRouter<T>@Deprecated public Set<String> getRemoteAppName()
@Deprecated public BitList<Invoker<T>> getInvokerList()
@Deprecated public MeshRuleCache<T> getMeshRuleCache()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.