public class HttpServer
extends io.netty.bootstrap.ServerBootstrap
| 构造器和说明 |
|---|
HttpServer(RpcServer rpcServer)
Instantiates a new http server.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
shutdownNow()
Shutdown now.
|
void |
start(int port)
Start.
|
void |
stop()
Stop.
|
void |
waitForStop()
Wait for stop.
|
childAttr, childGroup, childHandler, childOption, clone, config, group, group, validatepublic HttpServer(RpcServer rpcServer)
rpcServer - the rpc serverpublic void start(int port)
port - the portpublic void waitForStop()
throws InterruptedException
InterruptedException - the interrupted exceptionpublic void stop()
public void shutdownNow()
Copyright © 2022 Baidu, Inc.. All rights reserved.