类 AuthorityRuleManager

java.lang.Object
com.alibaba.csp.sentinel.slots.block.authority.AuthorityRuleManager

public final class AuthorityRuleManager extends Object
Manager for authority rules.
作者:
youji.zj, jialiang.linjl, Eric Zhao
  • 构造器详细资料

    • AuthorityRuleManager

      public AuthorityRuleManager()
  • 方法详细资料

    • register2Property

      public static void register2Property(SentinelProperty<List<AuthorityRule>> property)
    • loadRules

      public static void loadRules(List<AuthorityRule> rules)
      Load the authority rules to memory.
      参数:
      rules - list of authority rules
    • hasConfig

      public static boolean hasConfig(String resource)
    • getRules

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

      public static boolean isValidRule(AuthorityRule rule)