public class TagStaticStateRouter extends AbstractStateRouter
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
NAME |
DEFAULT_PRIORITY| 构造器和说明 |
|---|
TagStaticStateRouter(org.apache.dubbo.common.URL url,
RouterChain chain) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getName() |
org.apache.dubbo.common.URL |
getUrl()
Get the router url.
|
boolean |
isEnable() |
boolean |
isForce() |
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> void |
notify(List<Invoker<T>> invokers) |
<T> RouterCache<T> |
pool(List<Invoker<T>> invokers) |
<T> BitList<Invoker<T>> |
route(BitList<Invoker<T>> invokers,
RouterCache<T> routerCache,
org.apache.dubbo.common.URL url,
Invocation invocation)
Filter invokers with current routing rule and only return the invokers that comply with the rule.
|
boolean |
shouldRePool() |
getPriority, pool, setForce, setPriority, setUrl, tagMatchFailcompareTo, stoppublic TagStaticStateRouter(org.apache.dubbo.common.URL url,
RouterChain chain)
public org.apache.dubbo.common.URL getUrl()
StateRoutergetUrl 在接口中 StateRoutergetUrl 在类中 AbstractStateRouterpublic <T> BitList<Invoker<T>> route(BitList<Invoker<T>> invokers, RouterCache<T> routerCache, org.apache.dubbo.common.URL url, Invocation invocation) throws RpcException
StateRouterroute 在接口中 StateRouterroute 在类中 AbstractStateRouterinvokers - invoker bit listrouterCache - router address cacheurl - refer urlinvocation - invocationRpcExceptionpublic boolean isRuntime()
StateRouterisRuntime 在接口中 StateRouterisRuntime 在类中 AbstractStateRouterpublic boolean isEnable()
public boolean isForce()
isForce 在接口中 StateRouterisForce 在类中 AbstractStateRouterpublic String getName()
public boolean shouldRePool()
public <T> RouterCache<T> pool(List<Invoker<T>> invokers)
public <T> void notify(List<Invoker<T>> invokers)
notify 在接口中 StateRouternotify 在类中 AbstractStateRouterCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.