@Override
    public long getAndResetValue() {
        return this.value.getAndSet(Long.MIN_VALUE);
    }
LongMaxGauge, store max value information.

The metric includes a atomic long value, to store the current max value.
inlong-tubemq/tubemq-core/src/main/java/org/apache/inlong/tubemq/corebase/metric/impl/LongMaxGauge.java