类 TpsMonitorManager

java.lang.Object
com.alibaba.nacos.common.notify.listener.Subscriber<TpsControlRuleChangeEvent>
com.alibaba.nacos.core.remote.control.TpsMonitorManager

@Service public class TpsMonitorManager extends com.alibaba.nacos.common.notify.listener.Subscriber<TpsControlRuleChangeEvent>
tps control manager.
版本:
$Id: TpsControlManager.java, v 0.1 2021年01月09日 12:38 PM liuzunfei Exp $
作者:
liuzunfei
  • 字段详细资料

  • 构造器详细资料

    • TpsMonitorManager

      public TpsMonitorManager()
  • 方法详细资料

    • registerTpsControlPoint

      public void registerTpsControlPoint(TpsMonitorPoint tpsMonitorPoint)
      register point.
      参数:
      tpsMonitorPoint - tps point.
    • applyTpsForClientIp

      public boolean applyTpsForClientIp(String pointName, String connectionId, String clientIp)
      apply tps.
      参数:
      clientIp - clientIp.
      pointName - pointName.
      返回:
      pass or not.
    • applyTps

      public boolean applyTps(String pointName, String connectionId, List<MonitorKey> monitorKeyList)
      apply tps.
      参数:
      pointName - pointName.
      monitorKeyList - monitorKeyList.
      返回:
      pass or not.
    • onEvent

      public void onEvent(TpsControlRuleChangeEvent event)
      指定者:
      onEvent 在类中 com.alibaba.nacos.common.notify.listener.Subscriber<TpsControlRuleChangeEvent>
    • subscribeType

      public Class<? extends com.alibaba.nacos.common.notify.Event> subscribeType()
      指定者:
      subscribeType 在类中 com.alibaba.nacos.common.notify.listener.Subscriber<TpsControlRuleChangeEvent>