michaelsembwever commented on code in PR #3696:
URL: https://github.com/apache/cassandra/pull/3696#discussion_r2725809261


##########
src/java/org/apache/cassandra/config/DatabaseDescriptor.java:
##########
@@ -4798,6 +4838,37 @@ public static void setGCWarnThreshold(int threshold)
         conf.gc_warn_threshold = new 
DurationSpec.IntMillisecondsBound(threshold);
     }
 
+    public static long getZGCWarnThreshold()
+    {
+        return conf.gc_warn_zgc_threshold.toMilliseconds();
+    }
+
+    public static void setZGCWarnThreshold(long threshold)
+    {
+        if (threshold < 0)
+            throw new IllegalArgumentException("Threshold value for 
gc_warn_zgc_threshold must be greater than or equal to 0");
+
+        if (threshold > Integer.MAX_VALUE)

Review Comment:
   same



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to