类 AuthorityRuleManager
java.lang.Object
com.alibaba.csp.sentinel.slots.block.authority.AuthorityRuleManager
Manager for authority rules.
- 作者:
- youji.zj, jialiang.linjl, Eric Zhao
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static List<AuthorityRule>getRules()Get a copy of the rules.static booleanstatic booleanisValidRule(AuthorityRule rule) static voidloadRules(List<AuthorityRule> rules) Load the authority rules to memory.static voidregister2Property(SentinelProperty<List<AuthorityRule>> property)
-
构造器详细资料
-
AuthorityRuleManager
public AuthorityRuleManager()
-
-
方法详细资料
-
register2Property
-
loadRules
Load the authority rules to memory.- 参数:
rules- list of authority rules
-
hasConfig
-
getRules
Get a copy of the rules.- 返回:
- a new copy of the rules.
-
isValidRule
-