类 ScriptStateRouter<T>
- java.lang.Object
-
- org.apache.dubbo.rpc.cluster.router.state.AbstractStateRouter<T>
-
- org.apache.dubbo.rpc.cluster.router.script.ScriptStateRouter<T>
-
- 所有已实现的接口:
StateRouter<T>
public class ScriptStateRouter<T> extends AbstractStateRouter<T>
ScriptRouter
-
-
构造器概要
构造器 构造器 说明 ScriptStateRouter(org.apache.dubbo.common.URL url)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanisForce()To decide whether this router should take effect when none of the invoker can match the router rule, which means theStateRouter.route(BitList, URL, Invocation, boolean, Holder)would be empty.booleanisRuntime()To decide whether this router need to execute every time an RPC comes or should only execute when addresses or rule change.-
从类继承的方法 org.apache.dubbo.rpc.cluster.router.state.AbstractStateRouter
buildSnapshot, getNextRouter, getRuleRepository, getUrl, notify, route, setForce, setNextRouter, setUrl
-
从接口继承的方法 org.apache.dubbo.rpc.cluster.router.state.StateRouter
stop
-
-
-
-
方法详细资料
-
isRuntime
public boolean isRuntime()
从接口复制的说明:StateRouterTo decide whether this router need to execute every time an RPC comes or should only execute when addresses or rule change.- 指定者:
isRuntime在接口中StateRouter<T>- 覆盖:
isRuntime在类中AbstractStateRouter<T>- 返回:
- true if the router need to execute every time.
-
isForce
public boolean isForce()
从接口复制的说明:StateRouterTo decide whether this router should take effect when none of the invoker can match the router rule, which means theStateRouter.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>- 返回:
- true to execute if none of invokers matches the current router
-
-