public class ScriptStateRouter<T> extends AbstractStateRouter<T>
| Constructor and Description |
|---|
ScriptStateRouter(org.apache.dubbo.common.URL url) |
| Modifier and Type | Method and Description |
|---|---|
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, setUrlequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstoppublic static final String NAME
public boolean isRuntime()
StateRouterisRuntime in interface StateRouter<T>isRuntime in class 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 in interface StateRouter<T>isForce in class AbstractStateRouter<T>Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.