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