com.clickzetta.platform.metrics.MetricConf Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clickzetta-java Show documentation
Show all versions of clickzetta-java Show documentation
The java SDK for clickzetta's Lakehouse
package com.clickzetta.platform.metrics;
import com.google.common.base.Preconditions;
public class MetricConf {
public static MetricConf DEFAULT = new MetricConf();
private boolean enable = false;
private int internalMs = 5 * 60 * 1000;
public MetricConf() {}
public boolean isEnable() {
return enable;
}
public MetricConf setEnable(boolean enable) {
this.enable = enable;
return this;
}
public Integer getInternalMs() {
return internalMs;
}
public MetricConf setInternalMs(int internalMs) {
Preconditions.checkArgument(internalMs >= 1000);
this.internalMs = internalMs;
return this;
}
@Override
public String toString() {
return "MetricConf{" +
"enable=" + enable +
", internalMs=" + internalMs +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy