io.github.icodegarden.nutrient.lang.metricsregistry.InstanceDiscovery Maven / Gradle / Ivy
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 InstanceDiscovery extends NamedObjectReader, Closeable {
default List listInstances(String serviceName) {
return listNamedObjects(serviceName);
}
/**
*
* @param data
* @return Nullable 若参数不符合
*/
T parseInstance(Object data);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy