You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2020/02/23 04:31:44 UTC

[GitHub] [rocketmq] zhanghaou commented on a change in pull request #1786: [ISSUE #1689]add interfaces to remove unused statsItems in BrokerStatsManager

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:
users@infra.apache.org


With regards,
Apache Git Services