类的使用
com.alibaba.csp.sentinel.adapter.gateway.common.rule.GatewayFlowRule
使用GatewayFlowRule的程序包
程序包
说明
-
com.alibaba.csp.sentinel.adapter.gateway.common.command中GatewayFlowRule的使用
修饰符和类型方法说明static com.alibaba.csp.sentinel.datasource.WritableDataSource<Set<GatewayFlowRule>>UpdateGatewayRuleCommandHandler.getWritableDataSource()修饰符和类型方法说明static voidUpdateGatewayRuleCommandHandler.setWritableDataSource(com.alibaba.csp.sentinel.datasource.WritableDataSource<Set<GatewayFlowRule>> gatewayFlowWds) -
com.alibaba.csp.sentinel.adapter.gateway.common.param中GatewayFlowRule的使用
修饰符和类型方法说明Object[]GatewayParamParser.parseParameterFor(String resource, T request, com.alibaba.csp.sentinel.util.function.Predicate<GatewayFlowRule> rulePredicate) Parse parameters for given resource from the request entity on condition of the rule predicate. -
com.alibaba.csp.sentinel.adapter.gateway.common.rule中GatewayFlowRule的使用
修饰符和类型方法说明GatewayFlowRule.setBurst(int burst) GatewayFlowRule.setControlBehavior(int controlBehavior) GatewayFlowRule.setCount(double count) GatewayFlowRule.setGrade(int grade) GatewayFlowRule.setIntervalSec(long intervalSec) GatewayFlowRule.setMaxQueueingTimeoutMs(int maxQueueingTimeoutMs) GatewayFlowRule.setParamItem(GatewayParamFlowItem paramItem) GatewayFlowRule.setResource(String resource) GatewayFlowRule.setResourceMode(int resourceMode) 修饰符和类型方法说明static Set<GatewayFlowRule>GatewayRuleManager.getRules()static Set<GatewayFlowRule>GatewayRuleManager.getRulesForResource(String resourceName) 修饰符和类型方法说明static booleanGatewayRuleManager.loadRules(Set<GatewayFlowRule> rules) Load all provided gateway rules into memory, while previous rules will be replaced.static voidGatewayRuleManager.register2Property(com.alibaba.csp.sentinel.property.SentinelProperty<Set<GatewayFlowRule>> property)