public interface Router extends Comparable<Router>
| Modifier and Type | Method and Description |
|---|---|
int |
getPriority()
Router's priority, used to sort routers.
|
URL |
getUrl()
get the router url.
|
<T> List<Invoker<T>> |
route(List<Invoker<T>> invokers,
URL url,
Invocation invocation)
route.
|
compareToURL getUrl()
<T> List<Invoker<T>> route(List<Invoker<T>> invokers, URL url, Invocation invocation) throws RpcException
invokers - url - refer urlinvocation - RpcExceptionint getPriority()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.