类 ParamFlowRuleManager

java.lang.Object
com.alibaba.csp.sentinel.slots.block.flow.param.ParamFlowRuleManager

public final class ParamFlowRuleManager extends Object
Manager for frequent ("hot-spot") parameter flow rules.
从以下版本开始:
0.2.0
作者:
jialiang.linjl, Eric Zhao
  • 方法详细资料

    • loadRules

      public static void loadRules(List<ParamFlowRule> rules)
      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 the 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 listen
    • getRulesOfResource

      public static List<ParamFlowRule> getRulesOfResource(String resourceName)
    • hasRules

      public static boolean hasRules(String resourceName)
    • getRules

      public static List<ParamFlowRule> getRules()
      Get a copy of the rules.
      返回:
      a new copy of the rules.