public class NettyServerBootstrap extends Object implements RemotingBootstrap
| 构造器和说明 |
|---|
NettyServerBootstrap(NettyServerConfig nettyServerConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getListenPort()
Gets listen port.
|
protected void |
setChannelHandlers(io.netty.channel.ChannelHandler... handlers)
Sets channel handlers.
|
void |
setListenPort(int listenPort)
use for mock
|
void |
shutdown()
Shutdown.
|
void |
start()
Start.
|
public NettyServerBootstrap(NettyServerConfig nettyServerConfig)
protected void setChannelHandlers(io.netty.channel.ChannelHandler... handlers)
handlers - the handlerspublic void setListenPort(int listenPort)
listenPort - the listen portpublic int getListenPort()
public void start()
RemotingBootstrapstart 在接口中 RemotingBootstrappublic void shutdown()
RemotingBootstrapshutdown 在接口中 RemotingBootstrapCopyright © 2022 Seata. All rights reserved.