public final class ParamFlowRuleManager extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<ParamFlowRule> |
getRules()
Get a copy of the rules.
|
static List<ParamFlowRule> |
getRulesOfResource(String resourceName) |
static boolean |
hasRules(String resourceName) |
static void |
loadRules(List<ParamFlowRule> rules)
Load parameter flow rules.
|
static void |
register2Property(SentinelProperty<List<ParamFlowRule>> property)
Listen to the
SentinelProperty for ParamFlowRules. |
public static void loadRules(List<ParamFlowRule> rules)
rules - new rules to load.public static void register2Property(SentinelProperty<List<ParamFlowRule>> property)
SentinelProperty for ParamFlowRules. The
property is the source of ParamFlowRules. Parameter flow rules
can also be set by loadRules(List) directly.property - the property to listenpublic static List<ParamFlowRule> getRulesOfResource(String resourceName)
public static boolean hasRules(String resourceName)
public static List<ParamFlowRule> getRules()
Copyright © 2022 Alibaba Group. All rights reserved.