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

rpc.turbo.discover.Discover Maven / Gradle / Ivy

There is a newer version: 0.0.9
Show newest version
package rpc.turbo.discover;

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

import rpc.turbo.config.HostPort;
import rpc.turbo.config.server.Protocol;

/**
 * 服务发现,App级别,每个App一个Discover
 * 
 * @author Hank
 *
 */
public interface Discover extends Closeable {
	/**
	 * 注册中心地址
	 */
	void init(List hostPorts);

	/**
	 * 添加一个服务变化回调
	 * 
	 * @param group
	 * @param app
	 * @param protocol
	 * @param listener
	 */
	void addListener(String group, String app, Protocol protocol, DiscoverListener listener);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy