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

com.ringcentral.platform.metrics.Metric Maven / Gradle / Ivy

package com.ringcentral.platform.metrics;

import com.ringcentral.platform.metrics.names.MetricNamed;

import static org.apache.commons.lang3.StringUtils.isBlank;

public interface Metric extends MetricNamed, Iterable {
    boolean isEnabled();

    default boolean hasDescription() {
        return !isBlank(description());
    }

    String description();

    void addListener(MetricListener listener);

    default void metricAdded() {}
    default void metricRemoved() {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy