chia7712 commented on code in PR #20783:
URL: https://github.com/apache/kafka/pull/20783#discussion_r2656498762


##########
core/src/main/java/kafka/server/QuotaFactory.java:
##########
@@ -67,6 +68,17 @@ public void shutdown() {
             controllerMutation.shutdown();
             clientQuotaCallbackPlugin.ifPresent(plugin -> 
Utils.closeQuietly(plugin, "client quota callback plugin"));
         }
+
+        public void updateQuotaMetricsConfigs() {
+            fetch.updateQuotaMetricConfigs();
+            produce.updateQuotaMetricConfigs();
+            request.updateQuotaMetricConfigs();
+            controllerMutation.updateQuotaMetricConfigs();
+        }
+
+        public QuotaConfigChangeListener quotaConfigChangeListener() {

Review Comment:
   ```java
           public QuotaConfigChangeListener quotaConfigChangeListener() {
               return () -> {
                   fetch.updateQuotaMetricConfigs();
                   produce.updateQuotaMetricConfigs();
                   request.updateQuotaMetricConfigs();
                   controllerMutation.updateQuotaMetricConfigs();
               };
           }
   ```



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to