Package org.apache.dubbo.rpc.cluster
Class RouterChain<T>
java.lang.Object
org.apache.dubbo.rpc.cluster.RouterChain<T>
Router chain
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRouters(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) voiddestroy()getLock()getSingleChain(org.apache.dubbo.common.URL url, BitList<Invoker<T>> availableInvokers, Invocation invocation) List<StateRouter<T>> Deprecated.route(org.apache.dubbo.common.URL url, BitList<Invoker<T>> availableInvokers, Invocation invocation) Deprecated.voidsetInvokers(BitList<Invoker<T>> invokers, Runnable switchAction) Notify router chain of the initial addresses from registry at the first time.
-
Constructor Details
-
RouterChain
-
-
Method Details
-
buildChain
public static <T> RouterChain<T> buildChain(Class<T> interfaceClass, org.apache.dubbo.common.URL url) -
buildSingleChain
public static <T> SingleRouterChain<T> buildSingleChain(Class<T> interfaceClass, org.apache.dubbo.common.URL url) -
getLock
-
getSingleChain
public SingleRouterChain<T> getSingleChain(org.apache.dubbo.common.URL url, BitList<Invoker<T>> availableInvokers, Invocation invocation) -
route
@Deprecated public List<Invoker<T>> route(org.apache.dubbo.common.URL url, BitList<Invoker<T>> availableInvokers, Invocation invocation) Deprecated. -
setInvokers
Notify router chain of the initial addresses from registry at the first time. Notify whenever addresses in registry change. -
destroy
public void destroy() -
addRouters
-
getCurrentChain
-
getRouters
-
getHeadStateRouter
-
getStateRouters
Deprecated.
-
getSingleChain(URL, BitList, Invocation)andSingleRouterChain.route(URL, BitList, Invocation)instead