类 ParamFlowRuleManager
java.lang.Object
com.alibaba.csp.sentinel.slots.block.flow.param.ParamFlowRuleManager
Manager for frequent ("hot-spot") parameter flow rules.
- 从以下版本开始:
- 0.2.0
- 作者:
- jialiang.linjl, Eric Zhao
-
方法概要
修饰符和类型方法说明static List<ParamFlowRule>getRules()Get a copy of the rules.static List<ParamFlowRule>getRulesOfResource(String resourceName) static booleanstatic voidloadRules(List<ParamFlowRule> rules) Load parameter flow rules.static voidregister2Property(com.alibaba.csp.sentinel.property.SentinelProperty<List<ParamFlowRule>> property) Listen to theSentinelPropertyforParamFlowRules.
-
方法详细资料
-
loadRules
Load parameter flow rules. Former rules will be replaced.- 参数:
rules- new rules to load.
-
register2Property
public static void register2Property(com.alibaba.csp.sentinel.property.SentinelProperty<List<ParamFlowRule>> property) Listen to theSentinelPropertyforParamFlowRules. The property is the source ofParamFlowRules. Parameter flow rules can also be set byloadRules(List)directly.- 参数:
property- the property to listen
-
getRulesOfResource
-
hasRules
-
getRules
Get a copy of the rules.- 返回:
- a new copy of the rules.
-