public class ConditionStateRouter<T> extends AbstractStateRouter<T>
cluster.router.condition.config.ServiceRouter
and AppStateRouter
refer to https://dubbo.apache.org/zh/docs/v2.7/user/examples/routing-rule/ .| Constructor and Description |
|---|
ConditionStateRouter(org.apache.dubbo.common.URL url) |
ConditionStateRouter(org.apache.dubbo.common.URL url,
String rule,
boolean force,
boolean enabled) |
| Modifier and Type | Method and Description |
|---|---|
void |
init(String rule) |
boolean |
isRuntime()
To decide whether this router need to execute every time an RPC comes or should only execute when addresses or
rule change.
|
boolean |
matchArguments(Map.Entry<String,org.apache.dubbo.rpc.cluster.router.condition.ConditionStateRouter.MatchPair> matchPair,
Invocation invocation)
analysis the arguments in the rule.
|
buildSnapshot, getNextRouter, getRuleRepository, getUrl, isForce, notify, route, setForce, setNextRouter, setUrlequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstoppublic static final String NAME
public ConditionStateRouter(org.apache.dubbo.common.URL url,
String rule,
boolean force,
boolean enabled)
public ConditionStateRouter(org.apache.dubbo.common.URL url)
public void init(String rule)
public boolean isRuntime()
StateRouterisRuntime in interface StateRouter<T>isRuntime in class AbstractStateRouter<T>public boolean matchArguments(Map.Entry<String,org.apache.dubbo.rpc.cluster.router.condition.ConditionStateRouter.MatchPair> matchPair, Invocation invocation)
matchPair - invocation - Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.