类 DefaultTpsControlManager
java.lang.Object
com.alibaba.nacos.plugin.control.tps.TpsControlManager
com.alibaba.nacos.plugin.control.tps.DefaultTpsControlManager
nacos tps control manager.
- 作者:
- shiyiyue
-
字段概要
字段修饰符和类型字段说明protected final Map<String, TpsBarrier> point name -> tps barrier.protected final Map<String, TpsControlRule> point name -> tps control rule.从类继承的字段 com.alibaba.nacos.plugin.control.tps.TpsControlManager
tpsBarrierCreator -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidapplyTpsRule(String pointName, TpsControlRule rule) apple tps rule.check(TpsCheckRequest tpsRequest) check tps result.getName()get control manager name.get points.getRules()get rules.voidregisterTpsPoint(String pointName) apple tps rule.从类继承的方法 com.alibaba.nacos.plugin.control.tps.TpsControlManager
buildTpsBarrierCreator, buildTpsControlRuleParser, getTpsControlRuleParser, initTpsRule
-
字段详细资料
-
points
point name -> tps barrier. -
rules
point name -> tps control rule.
-
-
构造器详细资料
-
DefaultTpsControlManager
public DefaultTpsControlManager()
-
-
方法详细资料
-
registerTpsPoint
apple tps rule.- 指定者:
registerTpsPoint在类中TpsControlManager- 参数:
pointName- pointName.
-
applyTpsRule
apple tps rule.- 指定者:
applyTpsRule在类中TpsControlManager- 参数:
pointName- pointName.rule- rule.
-
getPoints
从类复制的说明:TpsControlManagerget points.- 指定者:
getPoints在类中TpsControlManager- 返回:
-
getRules
从类复制的说明:TpsControlManagerget rules.- 指定者:
getRules在类中TpsControlManager- 返回:
-
check
check tps result.- 指定者:
check在类中TpsControlManager- 参数:
tpsRequest- TpsRequest.- 返回:
- check current tps is allowed.
-
getName
从类复制的说明:TpsControlManagerget control manager name.- 指定者:
getName在类中TpsControlManager- 返回:
-