public class ScriptStateRouter<T> extends AbstractStateRouter<T>
| 构造器和说明 |
|---|
ScriptStateRouter(org.apache.dubbo.common.URL url) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
isForce()
To decide whether this router should take effect when none of the invoker can match the router rule, which
means the
StateRouter.route(BitList, URL, Invocation, boolean, Holder) would be empty. |
boolean |
isRuntime()
To decide whether this router need to execute every time an RPC comes or should only execute when addresses or
rule change.
|
buildSnapshot, getNextRouter, getRuleRepository, getUrl, notify, route, setForce, setNextRouter, setUrlstoppublic boolean isRuntime()
StateRouterisRuntime 在接口中 StateRouter<T>isRuntime 在类中 AbstractStateRouter<T>public boolean isForce()
StateRouterStateRouter.route(BitList, URL, Invocation, boolean, Holder) would be empty. Most of time, most router implementation would
default this value to false.isForce 在接口中 StateRouter<T>isForce 在类中 AbstractStateRouter<T>Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.