类 MockInvokersSelector

  • 所有已实现的接口:
    Comparable<Router>, Router

    public class MockInvokersSelector
    extends AbstractRouter
    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

        public MockInvokersSelector()
    • 方法详细资料

      • route

        public <T> List<Invoker<T>> route​(List<Invoker<T>> invokers,
                                          org.apache.dubbo.common.URL url,
                                          Invocation invocation)
                                   throws RpcException
        从接口复制的说明: Router
        Filter invokers with current routing rule and only return the invokers that comply with the rule.
        参数:
        invokers - invoker list
        url - refer url
        invocation - invocation
        返回:
        routed invokers
        抛出:
        RpcException