public final class AuthorityRuleManager extends Object
| Constructor and Description |
|---|
AuthorityRuleManager() |
| Modifier and Type | Method and Description |
|---|---|
static List<AuthorityRule> |
getRules()
Get a copy of the rules.
|
static boolean |
hasConfig(String resource) |
static boolean |
isValidRule(AuthorityRule rule) |
static void |
loadRules(List<AuthorityRule> rules)
Load the authority rules to memory.
|
static void |
register2Property(SentinelProperty<List<AuthorityRule>> property) |
public static void register2Property(SentinelProperty<List<AuthorityRule>> property)
public static void loadRules(List<AuthorityRule> rules)
rules - list of authority rulespublic static boolean hasConfig(String resource)
public static List<AuthorityRule> getRules()
public static boolean isValidRule(AuthorityRule rule)
Copyright © 2021 Alibaba Group. All rights reserved.