public class NettyClientBootstrap extends Object implements RemotingBootstrap
| 构造器和说明 |
|---|
NettyClientBootstrap(NettyClientConfig nettyClientConfig,
io.netty.util.concurrent.EventExecutorGroup eventExecutorGroup,
NettyPoolKey.TransactionRole transactionRole) |
| 限定符和类型 | 方法和说明 |
|---|---|
io.netty.channel.Channel |
getNewChannel(InetSocketAddress address)
Gets new channel.
|
protected void |
setChannelHandlers(io.netty.channel.ChannelHandler... handlers)
Sets channel handlers.
|
void |
shutdown()
Shutdown.
|
void |
start()
Start.
|
public NettyClientBootstrap(NettyClientConfig nettyClientConfig, io.netty.util.concurrent.EventExecutorGroup eventExecutorGroup, NettyPoolKey.TransactionRole transactionRole)
protected void setChannelHandlers(io.netty.channel.ChannelHandler... handlers)
handlers - the handlerspublic void start()
RemotingBootstrapstart 在接口中 RemotingBootstrappublic void shutdown()
RemotingBootstrapshutdown 在接口中 RemotingBootstrappublic io.netty.channel.Channel getNewChannel(InetSocketAddress address)
address - the addressCopyright © 2022 Seata. All rights reserved.