public final class TrafficRule extends Object implements GlobalRule
| Constructor and Description |
|---|
TrafficRule(TrafficRuleConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
Optional<TrafficStrategyRule> |
findMatchedStrategyRule(LogicSQL logicSQL,
boolean inTransaction)
Find matched strategy rule.
|
Collection<String> |
getLabels()
Get label collection.
|
String |
getType() |
public TrafficRule(TrafficRuleConfiguration config)
public Optional<TrafficStrategyRule> findMatchedStrategyRule(LogicSQL logicSQL, boolean inTransaction)
logicSQL - logic SQLinTransaction - is in transactionpublic Collection<String> getLabels()
public String getType()
getType in interface ShardingSphereRuleCopyright © 2022 The Apache Software Foundation. All rights reserved.