com.alibaba.dubbo.rpc.cluster.router
Class MockInvokersSelector
java.lang.Object
com.alibaba.dubbo.rpc.cluster.router.MockInvokersSelector
- All Implemented Interfaces:
- Router, Comparable<Router>
public class MockInvokersSelector
- extends Object
- implements Router
mock invoker选择器
- Author:
- chao.liuc
MockInvokersSelector
public MockInvokersSelector()
route
public <T> List<Invoker<T>> route(List<Invoker<T>> invokers,
URL url,
Invocation invocation)
throws RpcException
- Description copied from interface:
Router
- route.
- Specified by:
route
in interface Router
url
- refer url
- Returns:
- routed invokers
- Throws:
RpcException
getUrl
public URL getUrl()
- Description copied from interface:
Router
- get the router url.
- Specified by:
getUrl
in interface Router
- Returns:
- url
compareTo
public int compareTo(Router o)
- Specified by:
compareTo
in interface Comparable<Router>
Copyright © 2012–2017 Alibaba. All rights reserved.