clarax commented on code in PR #685:
URL: 
https://github.com/apache/flink-kubernetes-operator/pull/685#discussion_r1367157112


##########
flink-autoscaler/src/main/java/org/apache/flink/autoscaler/event/AutoScalerEventHandler.java:
##########
@@ -33,19 +35,15 @@
 @Experimental
 public interface AutoScalerEventHandler<KEY, Context extends 
JobAutoScalerContext<KEY>> {
 
-    /**
-     * Handle the event.
-     *
-     * @param interval When interval is great than 0, events that repeat 
within the interval will be
-     *     ignored.
-     */
+    /** Handle the event. */

Review Comment:
   Interval is needed for all AutoScalerHandler. The reason to remove it from 
parameter list  is context contains config which defines the interval. I think 
this is the advantage using a context to wrap up all info to pass so we don't 
need to use so many parameters in the method. The same reason we don't need to 
pass scalingEnabled in handleScalingEvent. Thank you for constructing the 
context during refactoring. @1996fanrui 



-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to