类的使用
com.alibaba.csp.sentinel.slots.block.flow.FlowRule
使用FlowRule的程序包
-
com.alibaba.csp.sentinel.slots.block.flow中FlowRule的使用
修饰符和类型方法说明FlowException.getRule()Get triggered rule.FlowRule.setClusterConfig(ClusterFlowConfig clusterConfig) FlowRule.setClusterMode(boolean clusterMode) FlowRule.setControlBehavior(int controlBehavior) FlowRule.setCount(double count) FlowRule.setGrade(int grade) FlowRule.setMaxQueueingTimeMs(int maxQueueingTimeMs) FlowRule.setRefResource(String refResource) FlowRule.setStrategy(int strategy) FlowRule.setWarmUpPeriodSec(int warmUpPeriodSec) 返回变量类型为FlowRule的类型的com.alibaba.csp.sentinel.slots.block.flow中的方法修饰符和类型方法说明FlowRuleUtil.buildFlowRuleMap(List<FlowRule> list) Build the flow rule map from raw list of flow rules, grouping by resource name.FlowRuleUtil.buildFlowRuleMap(List<FlowRule> list, Function<FlowRule, K> groupFunction, Predicate<FlowRule> filter, boolean shouldSort) Build the flow rule map from raw list of flow rules, grouping by provided group function.FlowRuleUtil.buildFlowRuleMap(List<FlowRule> list, Predicate<FlowRule> filter) Build the flow rule map from raw list of flow rules, grouping by resource name.FlowRuleUtil.buildFlowRuleMap(List<FlowRule> list, Predicate<FlowRule> filter, boolean shouldSort) Build the flow rule map from raw list of flow rules, grouping by resource name.FlowRuleManager.getRules()Get a copy of the rules.修饰符和类型方法说明booleanFlowRuleChecker.canPassCheck(FlowRule rule, Context context, DefaultNode node, int acquireCount) booleanFlowRuleChecker.canPassCheck(FlowRule rule, Context context, DefaultNode node, int acquireCount, boolean prioritized) static booleanFlowRuleUtil.checkClusterConcurrentField(FlowRule rule) intstatic booleanFlowRuleUtil.isValidRule(FlowRule rule) Check whether provided flow rule is valid.类型变量类型为FlowRule的com.alibaba.csp.sentinel.slots.block.flow中的方法参数修饰符和类型方法说明FlowRuleUtil.buildFlowRuleMap(List<FlowRule> list) Build the flow rule map from raw list of flow rules, grouping by resource name.FlowRuleUtil.buildFlowRuleMap(List<FlowRule> list, Function<FlowRule, K> groupFunction, Predicate<FlowRule> filter, boolean shouldSort) Build the flow rule map from raw list of flow rules, grouping by provided group function.FlowRuleUtil.buildFlowRuleMap(List<FlowRule> list, Function<FlowRule, K> groupFunction, Predicate<FlowRule> filter, boolean shouldSort) Build the flow rule map from raw list of flow rules, grouping by provided group function.FlowRuleUtil.buildFlowRuleMap(List<FlowRule> list, Function<FlowRule, K> groupFunction, Predicate<FlowRule> filter, boolean shouldSort) Build the flow rule map from raw list of flow rules, grouping by provided group function.FlowRuleUtil.buildFlowRuleMap(List<FlowRule> list, Predicate<FlowRule> filter) Build the flow rule map from raw list of flow rules, grouping by resource name.FlowRuleUtil.buildFlowRuleMap(List<FlowRule> list, Predicate<FlowRule> filter) Build the flow rule map from raw list of flow rules, grouping by resource name.FlowRuleUtil.buildFlowRuleMap(List<FlowRule> list, Predicate<FlowRule> filter, boolean shouldSort) Build the flow rule map from raw list of flow rules, grouping by resource name.FlowRuleUtil.buildFlowRuleMap(List<FlowRule> list, Predicate<FlowRule> filter, boolean shouldSort) Build the flow rule map from raw list of flow rules, grouping by resource name.voidFlowRuleChecker.checkFlow(Function<String, Collection<FlowRule>> ruleProvider, ResourceWrapper resource, Context context, DefaultNode node, int count, boolean prioritized) static voidLoadFlowRules, former rules will be replaced.static voidFlowRuleManager.register2Property(SentinelProperty<List<FlowRule>> property) Listen to theSentinelPropertyforFlowRules.