net.dongliu.prettypb.rpc.config.ServerChangedNotifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of prettypb-rpc Show documentation
Show all versions of prettypb-rpc Show documentation
proto rpc libs, compatible with proto-rpc-pro
package net.dongliu.prettypb.rpc.config;
import net.dongliu.prettypb.rpc.protocol.ServerInfo;
/**
* call back interface when rpc server changed
*
* @author Dong Liu
*/
public interface ServerChangedNotifier {
/**
* new server is added
*
* @param serverInfo
*/
void notifyAdd(ServerInfo serverInfo);
/**
* remove on server
*
* @param serverInfo
*/
void notifyRemove(ServerInfo serverInfo);
}