![JAR search and dependency download from the Maven repository](/logo.png)
com.ringcentral.platform.metrics.Metric Maven / Gradle / Ivy
package com.ringcentral.platform.metrics;
import com.ringcentral.platform.metrics.names.MetricNamed;
import static com.ringcentral.platform.metrics.utils.StringUtils.isNotBlank;
public interface Metric extends MetricNamed, Iterable {
boolean isEnabled();
default boolean hasDescription() {
return isNotBlank(description());
}
String description();
void addListener(MetricListener listener);
default void metricAdded() {}
default void metricRemoved() {}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy