public class NettyClientBootstrap extends Object implements RemotingBootstrap
| Constructor and Description |
|---|
NettyClientBootstrap(NettyClientConfig nettyClientConfig,
io.netty.util.concurrent.EventExecutorGroup eventExecutorGroup,
NettyPoolKey.TransactionRole transactionRole) |
| Modifier and Type | Method and Description |
|---|---|
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 in interface RemotingBootstrappublic void shutdown()
RemotingBootstrapshutdown in interface RemotingBootstrappublic io.netty.channel.Channel getNewChannel(InetSocketAddress address)
address - the addressCopyright © 2023 Seata. All rights reserved.