接口的使用
com.alibaba.csp.sentinel.util.function.Predicate
使用Predicate的程序包
程序包
说明
-
com.alibaba.csp.sentinel中Predicate的使用
参数类型为Predicate的com.alibaba.csp.sentinel中的方法修饰符和类型方法说明static voidTracer.setExceptionPredicate(Predicate<Throwable> exceptionPredicate) set an exception predicate which indicates the exception should be traced(return true) or ignored(return false) except forBlockException -
com.alibaba.csp.sentinel.node中Predicate的使用
参数类型为Predicate的com.alibaba.csp.sentinel.node中的方法修饰符和类型方法说明Node.rawMetricsInMin(Predicate<Long> timePredicate) Fetch all raw metric items that satisfies the time predicate.StatisticNode.rawMetricsInMin(Predicate<Long> timePredicate) -
com.alibaba.csp.sentinel.slots.block中Predicate的使用
-
com.alibaba.csp.sentinel.slots.block.flow中Predicate的使用
修饰符和类型方法说明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. -
com.alibaba.csp.sentinel.slots.statistic.metric中Predicate的使用
修饰符和类型方法说明ArrayMetric.detailsOnCondition(Predicate<Long> timePredicate) Metric.detailsOnCondition(Predicate<Long> timePredicate) Generate aggregated metric items that satisfies the time predicate.