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

io.github.icodegarden.nutrient.lang.registry.Instance Maven / Gradle / Ivy

There is a newer version: 3.0.2
Show newest version
package io.github.icodegarden.nutrient.lang.registry;

import lombok.Getter;
import lombok.ToString;

/**
 * 
 * @author Fangfang.Xu
 *
 */
public interface Instance {

	/**
	 * @return 名称 例如serviceName
	 */
	String getName();

	String getInstanceId();

	String getHost();

	int getPort();

	@Getter
	@ToString
	class Default implements Instance {
		private String name;
		private String instanceId;
		private String host;
		private int port;

		public Default(String name, String instanceId, String host, int port) {
			super();
			this.name = name;
			this.instanceId = instanceId;
			this.host = host;
			this.port = port;
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy