alex-plekhanov commented on code in PR #13661:
URL: https://github.com/apache/ignite/pull/13661#discussion_r4378798341


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/odbc/ClientListenerProcessor.java:
##########
@@ -853,4 +904,22 @@ public class ClientProcessorMXBeanImpl implements 
ClientProcessorMXBean {
             }
         }
     }
+
+    /** Maximum value over the time interval updated by the given operator on 
each read. */
+    private static class MaxWithValueUpdateMetric extends MaxValueMetric {
+        /** */
+        private final LongUnaryOperator updater;
+
+        /** */
+        MaxWithValueUpdateMetric(String name, String desc, long timeInterval, 
int size, LongUnaryOperator updater) {
+            super(name, desc, timeInterval, size);
+
+            this.updater = updater;
+        }
+
+        /** {@inheritDoc} */
+        @Override public long value() {
+            return updater.applyAsLong(super.value());

Review Comment:
   Minor: I think it will looks more native with `max(super.value(), 
updater.getAsLong())`



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