类 TpsRecorder
java.lang.Object
com.alibaba.nacos.core.remote.control.TpsRecorder
tps record.
- 版本:
- $Id: TpsRecorder.java, v 0.1 2021年01月09日 12:38 PM liuzunfei Exp $
- 作者:
- liuzunfei
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidclearLimitRule.com.alibaba.nacos.core.remote.control.TpsRecorder.TpsSlotcreateSlotIfAbsent(long timeStamp)get slot of the timestamp second,create if not exist.longgetModel()com.alibaba.nacos.core.remote.control.TpsRecorder.TpsSlotgetPoint(long timeStamp)get slot of the timestamp second,read only ,return nul if not exist.List<com.alibaba.nacos.core.remote.control.TpsRecorder.TpsSlot>booleanbooleanvoidsetMaxCount(long maxCount)voidvoidsetMonitorType(String monitorType)
-
构造器详细资料
-
TpsRecorder
-
-
方法详细资料
-
isProtoModel
public boolean isProtoModel() -
getModel
-
setModel
-
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
-
setMonitorType
-
getSlotList
-