public class RouterChain<T> extends Object
| 构造器和说明 |
|---|
RouterChain(SingleRouterChain<T>[] chains) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addRouters(List<Router> routers) |
static <T> RouterChain<T> |
buildChain(Class<T> interfaceClass,
org.apache.dubbo.common.URL url) |
static <T> SingleRouterChain<T> |
buildSingleChain(Class<T> interfaceClass,
org.apache.dubbo.common.URL url) |
void |
destroy() |
SingleRouterChain<T> |
getCurrentChain() |
StateRouter<T> |
getHeadStateRouter() |
ReadWriteLock |
getLock() |
List<Router> |
getRouters() |
SingleRouterChain<T> |
getSingleChain(org.apache.dubbo.common.URL url,
BitList<Invoker<T>> availableInvokers,
Invocation invocation) |
List<StateRouter<T>> |
getStateRouters()
已过时。
|
List<Invoker<T>> |
route(org.apache.dubbo.common.URL url,
BitList<Invoker<T>> availableInvokers,
Invocation invocation)
|
void |
setInvokers(BitList<Invoker<T>> invokers,
Runnable switchAction)
Notify router chain of the initial addresses from registry at the first time.
|
public RouterChain(SingleRouterChain<T>[] chains)
public static <T> RouterChain<T> buildChain(Class<T> interfaceClass, org.apache.dubbo.common.URL url)
public static <T> SingleRouterChain<T> buildSingleChain(Class<T> interfaceClass, org.apache.dubbo.common.URL url)
public ReadWriteLock getLock()
public SingleRouterChain<T> getSingleChain(org.apache.dubbo.common.URL url, BitList<Invoker<T>> availableInvokers, Invocation invocation)
@Deprecated public List<Invoker<T>> route(org.apache.dubbo.common.URL url, BitList<Invoker<T>> availableInvokers, Invocation invocation)
public void setInvokers(BitList<Invoker<T>> invokers, Runnable switchAction)
public void destroy()
public SingleRouterChain<T> getCurrentChain()
public StateRouter<T> getHeadStateRouter()
@Deprecated public List<StateRouter<T>> getStateRouters()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.