com.clickhouse.client.api.internal.Gauge Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client-v2 Show documentation
Show all versions of client-v2 Show documentation
New client api for ClickHouse
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;
}
}