接口 Router
-
- 所有超级接口:
Comparable<Router>
,Router
@Deprecated public interface Router extends Router
已过时。
-
-
字段概要
-
从接口继承的字段 org.apache.dubbo.rpc.cluster.Router
DEFAULT_PRIORITY
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 已过时的方法 修饰符和类型 方法 说明 int
compareTo(Router o)
已过时。default int
compareTo(Router o)
已过时。default int
getPriority()
已过时。Router's priority, used to sort routers.URL
getUrl()
已过时。Get the router url.default boolean
isForce()
已过时。To decide whether this router should take effect when none of the invoker can match the router rule, which means theRouter.route(List, URL, Invocation)
would be empty.default boolean
isRuntime()
已过时。To decide whether this router need to execute every time an RPC comes or should only execute when addresses or rule change.<T> List<Invoker<T>>
route(List<Invoker<T>> invokers, URL url, Invocation invocation)
已过时。default <T> List<Invoker<T>>
route(List<Invoker<T>> invokers, URL url, Invocation invocation)
已过时。Filter invokers with current routing rule and only return the invokers that comply with the rule.
-
-
-
方法详细资料
-
route
<T> List<Invoker<T>> route(List<Invoker<T>> invokers, URL url, Invocation invocation) throws RpcException
已过时。- 抛出:
RpcException
-
compareTo
int compareTo(Router o)
已过时。
-
route
default <T> List<Invoker<T>> route(List<Invoker<T>> invokers, URL url, Invocation invocation) throws RpcException
已过时。从接口复制的说明:Router
Filter invokers with current routing rule and only return the invokers that comply with the rule.- 指定者:
route
在接口中Router
- 参数:
invokers
- invoker listurl
- refer urlinvocation
- invocation- 返回:
- routed invokers
- 抛出:
RpcException
-
isRuntime
default boolean isRuntime()
已过时。从接口复制的说明:Router
To decide whether this router need to execute every time an RPC comes or should only execute when addresses or rule change.
-
isForce
default boolean isForce()
已过时。从接口复制的说明:Router
To decide whether this router should take effect when none of the invoker can match the router rule, which means theRouter.route(List, URL, Invocation)
would be empty. Most of time, most router implementation would default this value to false.
-
getPriority
default int getPriority()
已过时。从接口复制的说明:Router
Router's priority, used to sort routers.- 指定者:
getPriority
在接口中Router
- 返回:
- router's priority
-
-