public class AuthorityRuleManager extends Object
| Constructor and Description |
|---|
AuthorityRuleManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkAuthority(ResourceWrapper resource,
Context context,
DefaultNode node,
int count) |
static List<AuthorityRule> |
getRules()
Get a copy of the rules.
|
static boolean |
hasConfig(String resource) |
static void |
loadRules(List<AuthorityRule> rules) |
static void |
register2Property(SentinelProperty<List<AuthorityRule>> property) |
public static void register2Property(SentinelProperty<List<AuthorityRule>> property)
public static void loadRules(List<AuthorityRule> rules)
rules - public static void checkAuthority(ResourceWrapper resource, Context context, DefaultNode node, int count) throws BlockException
BlockExceptionpublic static boolean hasConfig(String resource)
public static List<AuthorityRule> getRules()
Copyright © 2018 Alibaba Group. All rights reserved.