public interface Transport
| 限定符和类型 | 方法和说明 |
|---|---|
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. |
io.netty.channel.ChannelFactory<io.netty.channel.ServerChannel> serverChannelFactory(SocketAddress local)
ChannelFactory.local - address to bindio.netty.channel.EventLoopGroup loop(int nThreads,
ThreadFactory threadFactory)
EventLoopGroupnThreads - threads countthreadFactory - thread factory to useEventLoopGroupvoid applyOptions(io.netty.bootstrap.ServerBootstrap bootstrap,
NetOptions options,
SocketAddress local)
options to the bootstrap.bootstrap - bootstrapoptions - optionslocal - address to bindCopyright © 2020. All rights reserved.