public class SimpleNettyClient extends AbstractNettyClient
| 构造器和说明 |
|---|
SimpleNettyClient(String namePre) |
| 限定符和类型 | 方法和说明 |
|---|---|
Optional<io.netty.channel.ChannelFuture> |
connect() |
Optional<io.netty.channel.ChannelFuture> |
connect(InetSocketAddress remoteAddress) |
SimpleNettyClient |
handler(io.netty.channel.ChannelHandler handler) |
SimpleNettyClient |
handlers(Supplier<io.netty.channel.ChannelHandler[]> supplier) |
SimpleNettyClient |
ioRatio(int ioRatio) |
SimpleNettyClient |
ioThreadCount(int ioThreadCount) |
SimpleNettyClient |
remoteAddress(InetSocketAddress remoteAddress) |
getActiveSocketChannelCount, getChannel, getName, getPort, getRemoteAddress, isConnect, run, setIoRatio, setIoThreadCount, stop, toStringpublic SimpleNettyClient(String namePre)
public SimpleNettyClient handler(io.netty.channel.ChannelHandler handler)
public SimpleNettyClient handlers(Supplier<io.netty.channel.ChannelHandler[]> supplier)
public SimpleNettyClient ioThreadCount(int ioThreadCount)
public SimpleNettyClient ioRatio(int ioRatio)
public SimpleNettyClient remoteAddress(InetSocketAddress remoteAddress)
public Optional<io.netty.channel.ChannelFuture> connect()
connect 在类中 AbstractNettyClientpublic Optional<io.netty.channel.ChannelFuture> connect(InetSocketAddress remoteAddress)
connect 在类中 AbstractNettyClientCopyright © 2020. All rights reserved.