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

net.oschina.thrift.client.support.pool.TSConfigProvider Maven / Gradle / Ivy

package net.oschina.thrift.client.support.pool;

import net.oschina.thrift.client.support.config.TSConfig;

import java.util.List;

/**
 * Thrift Server Config Provider
 * 

* 服务列表提供者,可以使用mysql,redis,zookeeper等实现, Reporter会定时发布服务列表,Provider就去获取,及时刷新 * * @author Arvin * @time 2017/3/1 17:56 */ public interface TSConfigProvider { /** * 获取所有的服务配置列表 */ List getAll(); /** * 获取一个Thrift 配置 */ TSConfig select(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy