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

io.github.icodegarden.nutrient.lang.metricsregistry.InstanceMetrics Maven / Gradle / Ivy

The newest version!
package io.github.icodegarden.nutrient.lang.metricsregistry;

import java.io.Closeable;
import java.util.List;

import io.github.icodegarden.nutrient.lang.NamedObjectReader;

/**
 * 
 * @author Fangfang.Xu
 *
 */
public interface InstanceMetrics extends NamedObjectReader, Closeable {

	 void setMetrics(T instance, Metrics metrics);

	 Metrics getMetrics(T instance);

	default List listMetrics(String serviceName) {
		return listNamedObjects(serviceName);
	}

	 void removeMetrics(T instance);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy