public class ConnectionBuilder extends NettyClientConfig
booter, channelClass, connectTimeOutMills, ioWorkers, level| 构造器和说明 |
|---|
ConnectionBuilder() |
ConnectionBuilder(Class<? extends io.netty.channel.socket.SocketChannel> channelClass,
io.netty.channel.EventLoopGroup ioWorkers) |
ConnectionBuilder(int ioThreads) |
| 限定符和类型 | 方法和说明 |
|---|---|
io.netty.channel.ChannelFuture |
connect(InetSocketAddress address) |
io.netty.channel.ChannelFuture |
connect(InetSocketAddress address,
io.netty.channel.ChannelHandler handler) |
static void |
main(String[] args) |
destory, doBooterConnect, getChannelClass, getConnectTimeOutMills, getIoWorkers, getLevel, initBooterOptions, initHandlerAdapter, optionConfig, setConnectTimeOutMills, setLevelpublic ConnectionBuilder()
public ConnectionBuilder(Class<? extends io.netty.channel.socket.SocketChannel> channelClass, io.netty.channel.EventLoopGroup ioWorkers)
public ConnectionBuilder(int ioThreads)
public final io.netty.channel.ChannelFuture connect(InetSocketAddress address)
public final io.netty.channel.ChannelFuture connect(InetSocketAddress address, io.netty.channel.ChannelHandler handler)
public static void main(String[] args)
Copyright © 2020. All rights reserved.