public class NettyServer extends AbstractRpcServer
hostName, port, serviceProvider, serviceRegistry| 构造器和说明 |
|---|
NettyServer(String hostName,
int port,
Integer serializerCode) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
start() |
publishService, publishService, scanServicespublic NettyServer(String hostName, int port, Integer serializerCode) throws RpcException
hostName - 启动服务所在机器的主机号,可以是私网或者公网port - 启动服务所在机器的端口号serializerCode - 序列化代码RpcExceptionCopyright © 2022. All rights reserved.