类的使用
com.alibaba.csp.sentinel.slots.block.flow.param.ParamFlowRule
使用ParamFlowRule的程序包
-
com.alibaba.csp.sentinel.command.handler中ParamFlowRule的使用
返回变量类型为ParamFlowRule的类型的com.alibaba.csp.sentinel.command.handler中的方法修饰符和类型方法说明static com.alibaba.csp.sentinel.datasource.WritableDataSource<List<ParamFlowRule>>ModifyParamFlowRulesCommandHandler.getWritableDataSource()类型变量类型为ParamFlowRule的com.alibaba.csp.sentinel.command.handler中的方法参数修饰符和类型方法说明static voidModifyParamFlowRulesCommandHandler.setWritableDataSource(com.alibaba.csp.sentinel.datasource.WritableDataSource<List<ParamFlowRule>> hotParamWds) -
com.alibaba.csp.sentinel.slots.block.flow.param中ParamFlowRule的使用
修饰符和类型方法说明ParamFlowException.getRule()Get triggered rule.ParamFlowRule.setBurstCount(int burstCount) ParamFlowRule.setClusterConfig(ParamFlowClusterConfig clusterConfig) ParamFlowRule.setClusterMode(boolean clusterMode) ParamFlowRule.setControlBehavior(int controlBehavior) ParamFlowRule.setCount(double count) ParamFlowRule.setDurationInSec(long durationInSec) ParamFlowRule.setGrade(int grade) ParamFlowRule.setMaxQueueingTimeMs(int maxQueueingTimeMs) ParamFlowRule.setParamFlowItemList(List<ParamFlowItem> paramFlowItemList) ParamFlowRule.setParamIdx(Integer paramIdx) 返回变量类型为ParamFlowRule的类型的com.alibaba.csp.sentinel.slots.block.flow.param中的方法修饰符和类型方法说明static Map<String,List<ParamFlowRule>> ParamFlowRuleUtil.buildParamRuleMap(List<ParamFlowRule> list) Build the flow rule map from raw list of flow rules, grouping by resource name.static <K> Map<K,List<ParamFlowRule>> ParamFlowRuleUtil.buildParamRuleMap(List<ParamFlowRule> list, com.alibaba.csp.sentinel.util.function.Function<ParamFlowRule, K> groupFunction, com.alibaba.csp.sentinel.util.function.Predicate<ParamFlowRule> filter, boolean shouldSort) Build the rule map from raw list of parameter flow rules, grouping by provided group function.static Map<String,List<ParamFlowRule>> ParamFlowRuleUtil.buildParamRuleMap(List<ParamFlowRule> list, com.alibaba.csp.sentinel.util.function.Predicate<ParamFlowRule> filter) Build the parameter flow rule map from raw list of rules, grouping by resource name.static Map<String,List<ParamFlowRule>> ParamFlowRuleUtil.buildParamRuleMap(List<ParamFlowRule> list, com.alibaba.csp.sentinel.util.function.Predicate<ParamFlowRule> filter, boolean shouldSort) Build the parameter flow rule map from raw list of rules, grouping by resource name.static List<ParamFlowRule>ParamFlowRuleManager.getRules()Get a copy of the rules.static List<ParamFlowRule>ParamFlowRuleManager.getRulesOfResource(String resourceName) 修饰符和类型方法说明voidParameterMetric.clearForRule(ParamFlowRule rule) static voidParamFlowRuleUtil.fillExceptionFlowItems(ParamFlowRule rule) Fill the parameter rule with parsed items.ParameterMetric.getRuleTimeCounter(ParamFlowRule rule) Get the time record counter for given parameter rule.voidParameterMetric.initialize(ParamFlowRule rule) static voidParameterMetricStorage.initParamMetricsFor(com.alibaba.csp.sentinel.slotchain.ResourceWrapper resourceWrapper, ParamFlowRule rule) Init the parameter metric and index map for given resource.static booleanParamFlowRuleUtil.isValidRule(ParamFlowRule rule) Check whether the provided rule is valid.static booleanParamFlowChecker.passCheck(com.alibaba.csp.sentinel.slotchain.ResourceWrapper resourceWrapper, ParamFlowRule rule, int count, Object... args) 修饰符和类型方法说明static Map<String,List<ParamFlowRule>> ParamFlowRuleUtil.buildParamRuleMap(List<ParamFlowRule> list) Build the flow rule map from raw list of flow rules, grouping by resource name.static <K> Map<K,List<ParamFlowRule>> ParamFlowRuleUtil.buildParamRuleMap(List<ParamFlowRule> list, com.alibaba.csp.sentinel.util.function.Function<ParamFlowRule, K> groupFunction, com.alibaba.csp.sentinel.util.function.Predicate<ParamFlowRule> filter, boolean shouldSort) Build the rule map from raw list of parameter flow rules, grouping by provided group function.static <K> Map<K,List<ParamFlowRule>> ParamFlowRuleUtil.buildParamRuleMap(List<ParamFlowRule> list, com.alibaba.csp.sentinel.util.function.Function<ParamFlowRule, K> groupFunction, com.alibaba.csp.sentinel.util.function.Predicate<ParamFlowRule> filter, boolean shouldSort) Build the rule map from raw list of parameter flow rules, grouping by provided group function.static <K> Map<K,List<ParamFlowRule>> ParamFlowRuleUtil.buildParamRuleMap(List<ParamFlowRule> list, com.alibaba.csp.sentinel.util.function.Function<ParamFlowRule, K> groupFunction, com.alibaba.csp.sentinel.util.function.Predicate<ParamFlowRule> filter, boolean shouldSort) Build the rule map from raw list of parameter flow rules, grouping by provided group function.static Map<String,List<ParamFlowRule>> ParamFlowRuleUtil.buildParamRuleMap(List<ParamFlowRule> list, com.alibaba.csp.sentinel.util.function.Predicate<ParamFlowRule> filter) Build the parameter flow rule map from raw list of rules, grouping by resource name.static Map<String,List<ParamFlowRule>> ParamFlowRuleUtil.buildParamRuleMap(List<ParamFlowRule> list, com.alibaba.csp.sentinel.util.function.Predicate<ParamFlowRule> filter) Build the parameter flow rule map from raw list of rules, grouping by resource name.static Map<String,List<ParamFlowRule>> ParamFlowRuleUtil.buildParamRuleMap(List<ParamFlowRule> list, com.alibaba.csp.sentinel.util.function.Predicate<ParamFlowRule> filter, boolean shouldSort) Build the parameter flow rule map from raw list of rules, grouping by resource name.static Map<String,List<ParamFlowRule>> ParamFlowRuleUtil.buildParamRuleMap(List<ParamFlowRule> list, com.alibaba.csp.sentinel.util.function.Predicate<ParamFlowRule> filter, boolean shouldSort) Build the parameter flow rule map from raw list of rules, grouping by resource name.static voidParamFlowRuleManager.loadRules(List<ParamFlowRule> rules) Load parameter flow rules.static voidParamFlowRuleManager.register2Property(com.alibaba.csp.sentinel.property.SentinelProperty<List<ParamFlowRule>> property) Listen to theSentinelPropertyforParamFlowRules.