public abstract class AbstractRpcServer extends Object implements RpcServer
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
hostName
修饰符 protected 才可以将 字段 继承都 子类中
在 子类中 执行 赋值操作
|
protected int |
port |
protected ServiceProvider |
serviceProvider |
protected ServiceRegistry |
serviceRegistry |
| 构造器和说明 |
|---|
AbstractRpcServer() |
protected String hostName
protected int port
protected ServiceProvider serviceProvider
protected ServiceRegistry serviceRegistry
public void scanServices()
throws cn.fyupeng.exception.RpcException
cn.fyupeng.exception.RpcExceptionpublic <T> void publishService(T service,
String serviceName)
throws cn.fyupeng.exception.RpcException
publishService 在接口中 RpcServercn.fyupeng.exception.RpcExceptionCopyright © 2022. All rights reserved.