public class NioTransport extends Object implements Transport
| 构造器和说明 |
|---|
NioTransport() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
applyOptions(io.netty.bootstrap.ServerBootstrap bootstrap,
NetOptions options,
SocketAddress local)
Applies the given
options to the bootstrap. |
io.netty.channel.EventLoopGroup |
loop(int nThreads,
ThreadFactory threadFactory)
Creates a
EventLoopGroup |
io.netty.channel.ChannelFactory<io.netty.channel.ServerChannel> |
serverChannelFactory(SocketAddress local)
Creates a server
ChannelFactory. |
public io.netty.channel.ChannelFactory<io.netty.channel.ServerChannel> serverChannelFactory(SocketAddress local)
TransportChannelFactory.serverChannelFactory 在接口中 Transportlocal - address to bindpublic io.netty.channel.EventLoopGroup loop(int nThreads,
ThreadFactory threadFactory)
TransportEventLoopGrouppublic void applyOptions(io.netty.bootstrap.ServerBootstrap bootstrap,
NetOptions options,
SocketAddress local)
Transportoptions to the bootstrap.applyOptions 在接口中 Transportbootstrap - bootstrapoptions - optionslocal - address to bindCopyright © 2020. All rights reserved.