public final class TrafficRule extends Object implements GlobalRule
| 构造器和说明 |
|---|
TrafficRule(TrafficRuleConfiguration ruleConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
Optional<TrafficStrategyRule> |
findMatchedStrategyRule(QueryContext queryContext,
boolean inTransaction)
Find matched strategy rule.
|
Collection<String> |
getLabels()
Get label collection.
|
String |
getType() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigurationpublic TrafficRule(TrafficRuleConfiguration ruleConfig)
public Optional<TrafficStrategyRule> findMatchedStrategyRule(QueryContext queryContext, boolean inTransaction)
queryContext - query contextinTransaction - is in transactionpublic Collection<String> getLabels()
public String getType()
getType 在接口中 ShardingSphereRuleCopyright © 2022 The Apache Software Foundation. All rights reserved.