public class NacosTpsControlManager extends TpsControlManager
| 限定符和类型 | 字段和说明 |
|---|---|
protected ScheduledExecutorService |
executorService |
protected Map<String,TpsBarrier> |
points
point name -> tps barrier.
|
protected Map<String,TpsControlRule> |
rules
point name -> tps control rule.
|
| 构造器和说明 |
|---|
NacosTpsControlManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
applyTpsRule(String pointName,
TpsControlRule rule)
apple tps rule.
|
TpsCheckResponse |
check(TpsCheckRequest tpsRequest)
check tps result.
|
String |
getName()
get control manager name.
|
Map<String,TpsBarrier> |
getPoints()
get points.
|
Map<String,TpsControlRule> |
getRules()
get rules.
|
void |
registerTpsPoint(String pointName)
apple tps rule.
|
protected void |
startTpsReport() |
initTpsRuleprotected final Map<String,TpsBarrier> points
protected final Map<String,TpsControlRule> rules
protected ScheduledExecutorService executorService
protected void startTpsReport()
public void registerTpsPoint(String pointName)
registerTpsPoint 在类中 TpsControlManagerpointName - pointName.public void applyTpsRule(String pointName, TpsControlRule rule)
applyTpsRule 在类中 TpsControlManagerpointName - pointName.rule - rule.public Map<String,TpsBarrier> getPoints()
TpsControlManagergetPoints 在类中 TpsControlManagerpublic Map<String,TpsControlRule> getRules()
TpsControlManagergetRules 在类中 TpsControlManagerpublic TpsCheckResponse check(TpsCheckRequest tpsRequest)
check 在类中 TpsControlManagertpsRequest - TpsRequest.public String getName()
TpsControlManagergetName 在类中 TpsControlManagerCopyright © 2018–2023 Alibaba Group. All rights reserved.