Class MeshRuleRouter<T>
java.lang.Object
org.apache.dubbo.rpc.cluster.router.state.AbstractStateRouter<T>
org.apache.dubbo.rpc.cluster.router.mesh.route.MeshRuleRouter<T>
- All Implemented Interfaces:
MeshRuleListener,StateRouter<T>
- Direct Known Subclasses:
StandardMeshRuleRouter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Deprecated.Deprecated.voidNotify the router the invoker list.voidvoidstop()Methods inherited from class org.apache.dubbo.rpc.cluster.router.state.AbstractStateRouter
buildSnapshot, getNextRouter, getRuleRepository, getUrl, isForce, isRuntime, route, setForce, setNextRouter, setUrlMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.dubbo.rpc.cluster.router.mesh.util.MeshRuleListener
ruleSuffix
-
Constructor Details
-
MeshRuleRouter
public MeshRuleRouter(org.apache.dubbo.common.URL url)
-
-
Method Details
-
notify
Description copied from interface:StateRouterNotify the router the invoker list. Invoker list may change from time to time. This method gives the router a chance to prepare beforeStateRouter.route(BitList, URL, Invocation, boolean, Holder)gets called. No need to notify next node.- Specified by:
notifyin interfaceStateRouter<T>- Overrides:
notifyin classAbstractStateRouter<T>- Parameters:
invokers- invoker list
-
onRuleChange
- Specified by:
onRuleChangein interfaceMeshRuleListener
-
clearRule
- Specified by:
clearRulein interfaceMeshRuleListener
-
stop
public void stop()- Specified by:
stopin interfaceStateRouter<T>
-
getRemoteAppName
Deprecated.for ut only -
getInvokerList
Deprecated.for ut only -
getMeshRuleCache
Deprecated.for ut only
-