public abstract class MeshRuleRouter<T> extends AbstractStateRouter<T> implements MeshRuleListener
| Modifier and Type | Field and Description |
|---|---|
static org.apache.dubbo.common.logger.Logger |
logger |
| Constructor and Description |
|---|
MeshRuleRouter(org.apache.dubbo.common.URL url) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearRule(String appName) |
BitList<Invoker<T>> |
getInvokerList()
Deprecated.
|
MeshRuleCache<T> |
getMeshRuleCache()
Deprecated.
|
Set<String> |
getRemoteAppName()
Deprecated.
|
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, setUrlequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitruleSuffixpublic void notify(BitList<Invoker<T>> invokers)
StateRouterStateRouter.route(BitList, URL, Invocation, boolean, Holder) gets called.
No need to notify next node.notify in interface StateRouter<T>notify in class AbstractStateRouter<T>invokers - invoker listpublic void onRuleChange(String appName, List<Map<String,Object>> rules)
onRuleChange in interface MeshRuleListenerpublic void clearRule(String appName)
clearRule in interface MeshRuleListenerpublic void stop()
stop in interface StateRouter<T>@Deprecated public Set<String> getRemoteAppName()
@Deprecated public BitList<Invoker<T>> getInvokerList()
@Deprecated public MeshRuleCache<T> getMeshRuleCache()
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.