类 MockInvokersSelector<T>
- java.lang.Object
-
- org.apache.dubbo.rpc.cluster.router.state.AbstractStateRouter<T>
-
- org.apache.dubbo.rpc.cluster.router.mock.MockInvokersSelector<T>
-
- 所有已实现的接口:
StateRouter<T>
public class MockInvokersSelector<T> extends AbstractStateRouter<T>
A specific Router designed to realize mock feature. If a request is configured to use mock, then this router guarantees that only the invokers with protocol MOCK appear in final the invoker list, all other invokers will be excluded.
-
-
构造器概要
构造器 构造器 说明 MockInvokersSelector(org.apache.dubbo.common.URL url)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidnotify(BitList<Invoker<T>> invokers)Notify the router the invoker list.-
从类继承的方法 org.apache.dubbo.rpc.cluster.router.state.AbstractStateRouter
buildSnapshot, getNextRouter, getRuleRepository, getUrl, isForce, isRuntime, route, setForce, setNextRouter, setUrl
-
从接口继承的方法 org.apache.dubbo.rpc.cluster.router.state.StateRouter
stop
-
-
-
-
方法详细资料
-
notify
public void notify(BitList<Invoker<T>> invokers)
从接口复制的说明: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.- 指定者:
notify在接口中StateRouter<T>- 覆盖:
notify在类中AbstractStateRouter<T>- 参数:
invokers- invoker list
-
-