类 TpsRecorder

java.lang.Object
com.alibaba.nacos.core.remote.control.TpsRecorder

public class TpsRecorder extends Object
tps record.
版本:
$Id: TpsRecorder.java, v 0.1 2021年01月09日 12:38 PM liuzunfei Exp $
作者:
liuzunfei
  • 构造器详细资料

    • TpsRecorder

      public TpsRecorder(long startTime, TimeUnit period, String model, int recordSize)
  • 方法详细资料

    • isProtoModel

      public boolean isProtoModel()
    • getModel

      public String getModel()
    • setModel

      public void setModel(String model)
    • createSlotIfAbsent

      public com.alibaba.nacos.core.remote.control.TpsRecorder.TpsSlot createSlotIfAbsent(long timeStamp)
      get slot of the timestamp second,create if not exist.
      参数:
      timeStamp - the timestamp second.
      返回:
    • getPoint

      public com.alibaba.nacos.core.remote.control.TpsRecorder.TpsSlot getPoint(long timeStamp)
      get slot of the timestamp second,read only ,return nul if not exist.
      参数:
      timeStamp - the timestamp second.
      返回:
    • getMaxCount

      public long getMaxCount()
    • setMaxCount

      public void setMaxCount(long maxCount)
    • isInterceptMode

      public boolean isInterceptMode()
    • clearLimitRule

      public void clearLimitRule()
      clearLimitRule.
    • getMonitorType

      public String getMonitorType()
    • setMonitorType

      public void setMonitorType(String monitorType)
    • getSlotList

      public List<com.alibaba.nacos.core.remote.control.TpsRecorder.TpsSlot> getSlotList()