@Deprecated public interface Router extends Router
DEFAULT_PRIORITY| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Router o)
Deprecated.
|
default int |
compareTo(Router o)
Deprecated.
|
default int |
getPriority()
Deprecated.
Router's priority, used to sort routers.
|
URL |
getUrl()
Deprecated.
Get the router url.
|
default boolean |
isForce()
Deprecated.
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()
Deprecated.
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)
Deprecated.
|
default <T> List<Invoker<T>> |
route(List<Invoker<T>> invokers,
URL url,
Invocation invocation)
Deprecated.
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 in interface 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 in interface RouterCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.