@Deprecated public interface Router extends 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 the
Router.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.
|
<T> List<Invoker<T>> route(List<Invoker<T>> invokers, URL url, Invocation invocation) throws RpcException
RpcExceptionint compareTo(Router o)
default <T> List<Invoker<T>> route(List<Invoker<T>> invokers, URL url, Invocation invocation) throws RpcException
Routerroute 在接口中 Routerinvokers - invoker listurl - refer urlinvocation - invocationRpcExceptiondefault boolean isRuntime()
Routerdefault boolean isForce()
RouterRouter.route(List, URL, Invocation) would be empty. Most of time, most router implementation would
default this value to false.default int getPriority()
RoutergetPriority 在接口中 RouterCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.