All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clickhouse.client.api.internal.Gauge Maven / Gradle / Ivy

There is a newer version: 0.7.0
Show newest version
package com.clickhouse.client.api.internal;

import com.clickhouse.client.api.metrics.Metric;

public class Gauge implements Metric {

    private volatile long value;

    public Gauge(long readRows) {
        this.value = readRows;
    }

    public void set(long value) {
        this.value = value;
    }

    @Override
    public long getLong() {
        return value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy