类 SimpleCountRuleBarrier
java.lang.Object
com.alibaba.nacos.plugin.control.tps.barrier.RuleBarrier
com.alibaba.nacos.plugin.control.tps.barrier.SimpleCountRuleBarrier
- 直接已知子类:
LocalSimpleCountRuleBarrier
simple count rule barrier.
- 作者:
- shiyiyue
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidapplyRuleDetail(RuleDetail ruleDetail) apply rule detail.applyTps(BarrierCheckRequest barrierCheckRequest) apply tps.abstract RateCountercreateSimpleCounter(String name, TimeUnit period) create rate count.getMetrics(long timeStamp) get metrics.voidreCreateRaterCounter(String name, TimeUnit period) (专用程序包) longtrimTimeStamp(long timeStamp) 从类继承的方法 com.alibaba.nacos.plugin.control.tps.barrier.RuleBarrier
clearLimitRule, getBarrierName, getLimitMsg, getMaxCount, getMonitorType, getPeriod, getPointName, getRuleName, isMonitorType, setMaxCount, setMonitorType, setPeriod, setPointName, setRuleName
-
字段详细资料
-
rateCounter
RateCounter rateCounter
-
-
构造器详细资料
-
SimpleCountRuleBarrier
-
-
方法详细资料
-
createSimpleCounter
create rate count.- 参数:
name- name.period- period.- 返回:
-
reCreateRaterCounter
-
applyTps
从类复制的说明:RuleBarrierapply tps.- 指定者:
applyTps在类中RuleBarrier- 参数:
barrierCheckRequest- barrierCheckRequest.- 返回:
-
trimTimeStamp
long trimTimeStamp(long timeStamp) -
getMetrics
从类复制的说明:RuleBarrierget metrics.- 指定者:
getMetrics在类中RuleBarrier- 参数:
timeStamp- timeStamp.- 返回:
-
applyRuleDetail
apply rule detail.- 指定者:
applyRuleDetail在类中RuleBarrier- 参数:
ruleDetail- ruleDetail.
-