public abstract class AbstractStateRouter extends Object implements StateRouter
DEFAULT_PRIORITY| 构造器和说明 |
|---|
AbstractStateRouter(org.apache.dubbo.common.URL url,
RouterChain chain) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getPriority() |
org.apache.dubbo.common.URL |
getUrl()
Get the router url.
|
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) |
void |
pool() |
<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 |
setForce(boolean force) |
void |
setPriority(int priority) |
void |
setUrl(org.apache.dubbo.common.URL url) |
<T> Boolean |
tagMatchFail(BitList<Invoker<T>> invokers) |
compareTo, getName, isEnable, pool, shouldRePool, stoppublic AbstractStateRouter(org.apache.dubbo.common.URL url,
RouterChain chain)
public <T> void notify(List<Invoker<T>> invokers)
notify 在接口中 StateRouterpublic org.apache.dubbo.common.URL getUrl()
StateRoutergetUrl 在接口中 StateRouterpublic void setUrl(org.apache.dubbo.common.URL url)
public boolean isRuntime()
StateRouterisRuntime 在接口中 StateRouterpublic boolean isForce()
isForce 在接口中 StateRouterpublic void setForce(boolean force)
public int getPriority()
getPriority 在接口中 StateRouterpublic void setPriority(int priority)
public <T> BitList<Invoker<T>> route(BitList<Invoker<T>> invokers, RouterCache<T> cache, org.apache.dubbo.common.URL url, Invocation invocation) throws RpcException
StateRouterroute 在接口中 StateRouterinvokers - invoker bit listcache - router address cacheurl - refer urlinvocation - invocationRpcExceptionpublic void pool()
pool 在接口中 StateRouterCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.