INNER CODE UNIT · Java

startRpcServer

TencentFemas/femas · femas-admin/src/main/java/com/tencent/tsf/femas/FemasApplication.java:36

    private static void startRpcServer() throws IOException {
        int grpcPort = GrpcHepler.getGrpcListenPort();
        NettyServerBuilder.forPort(grpcPort)
                .addService(new GrpcLongPollingEndpoint())
                .build()
                .start();
        log.info("start grpc on port:{}",grpcPort);
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…