类 TpsControlManager

java.lang.Object
com.alibaba.nacos.plugin.control.tps.TpsControlManager
直接已知子类:
DefaultTpsControlManager

public abstract class TpsControlManager extends Object
abstract tps control manager.
作者:
shiyiyue
  • 字段详细资料

  • 构造器详细资料

    • TpsControlManager

      protected TpsControlManager()
  • 方法详细资料

    • getTpsControlRuleParser

      public TpsControlRuleParser getTpsControlRuleParser()
    • buildTpsControlRuleParser

      protected TpsControlRuleParser buildTpsControlRuleParser()
    • buildTpsBarrierCreator

      protected TpsBarrierCreator buildTpsBarrierCreator()
      Build tps barrier creator to creator tps barrier for each point.
      返回:
      TpsBarrierCreator implementation for current plugin
    • initTpsRule

      protected void initTpsRule(String pointName)
    • registerTpsPoint

      public abstract void registerTpsPoint(String pointName)
      apple tps rule.
      参数:
      pointName - pointName.
    • getPoints

      public abstract Map<String,TpsBarrier> getPoints()
      get points.
      返回:
    • getRules

      public abstract Map<String,TpsControlRule> getRules()
      get rules.
      返回:
    • applyTpsRule

      public abstract void applyTpsRule(String pointName, TpsControlRule rule)
      apple tps rule.
      参数:
      pointName - pointName.
      rule - rule.
    • check

      public abstract TpsCheckResponse check(TpsCheckRequest tpsRequest)
      check tps result.
      参数:
      tpsRequest - TpsRequest.
      返回:
      check current tps is allowed.
    • getName

      public abstract String getName()
      get control manager name.
      返回: