public final class GatewayRuleManager extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<ParamFlowRule> |
getConvertedParamRules(String resourceName)
Get all converted parameter rules.
|
static Set<GatewayFlowRule> |
getRules() |
static Set<GatewayFlowRule> |
getRulesForResource(String resourceName) |
static boolean |
isValidRule(GatewayFlowRule rule) |
static boolean |
loadRules(Set<GatewayFlowRule> rules)
Load all provided gateway rules into memory, while
previous rules will be replaced.
|
static void |
register2Property(SentinelProperty<Set<GatewayFlowRule>> property) |
public static void register2Property(SentinelProperty<Set<GatewayFlowRule>> property)
public static boolean loadRules(Set<GatewayFlowRule> rules)
rules - rule setpublic static Set<GatewayFlowRule> getRules()
public static Set<GatewayFlowRule> getRulesForResource(String resourceName)
public static List<ParamFlowRule> getConvertedParamRules(String resourceName)
Get all converted parameter rules.
Note: caller SHOULD NOT modify the list and rules.
resourceName - valid resource namepublic static boolean isValidRule(GatewayFlowRule rule)
Copyright © 2020 Alibaba Group. All rights reserved.