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 RpcException
RpcExceptionpublic <T> void publishService(T service,
String serviceName)
throws RpcException
publishService 在接口中 RpcServerRpcExceptionCopyright © 2022. All rights reserved.