zhanghaou commented on a change in pull request #1786: [ISSUE #1689]add 
interfaces to remove unused statsItems in BrokerStatsManager
URL: https://github.com/apache/rocketmq/pull/1786#discussion_r382963181
 
 

 ##########
 File path: 
common/src/main/java/org/apache/rocketmq/common/stats/StatsItemSet.java
 ##########
 @@ -158,6 +158,43 @@ public void addValue(final String statsKey, final int 
incValue, final int incTim
         statsItem.getTimes().addAndGet(incTimes);
     }
 
+    public void delValue(final String statsKey) {
+        StatsItem statsItem = this.statsItemTable.get(statsKey);
+        if (null != statsItem) {
+            this.statsItemTable.remove(statsKey);
+        }
+    }
+
+    public void delValueByFirstKey(final String statsKey, String separator) {
 
 Review comment:
   I have renamed all.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to