public class NettyConfig extends Object
EventLoopGroups and
ChannelOptions.| Modifier and Type | Field and Description |
|---|---|
private io.netty.channel.nio.NioEventLoopGroup |
bossGroup |
private int |
bossThreadCount |
protected io.netty.channel.ChannelInitializer<? extends io.netty.channel.Channel> |
channelInitializer |
private Map<io.netty.channel.ChannelOption<?>,Object> |
channelOptions |
private int |
portNumber |
private InetSocketAddress |
socketAddress |
private io.netty.channel.nio.NioEventLoopGroup |
workerGroup |
private int |
workerThreadCount |
| Constructor and Description |
|---|
NettyConfig() |
| Modifier and Type | Method and Description |
|---|---|
io.netty.channel.nio.NioEventLoopGroup |
getBossGroup() |
int |
getBossThreadCount() |
Map<io.netty.channel.ChannelOption<?>,Object> |
getChannelOptions() |
int |
getPortNumber() |
InetSocketAddress |
getSocketAddress() |
io.netty.channel.nio.NioEventLoopGroup |
getWorkerGroup() |
int |
getWorkerThreadCount() |
void |
setBossGroup(io.netty.channel.nio.NioEventLoopGroup bossGroup) |
void |
setBossThreadCount(int bossThreadCount) |
void |
setChannelOptions(Map<io.netty.channel.ChannelOption<?>,Object> channelOptions) |
void |
setPortNumber(int portNumber) |
void |
setSocketAddress(InetSocketAddress socketAddress) |
void |
setWorkerGroup(io.netty.channel.nio.NioEventLoopGroup workerGroup) |
void |
setWorkerThreadCount(int workerThreadCount) |
private io.netty.channel.nio.NioEventLoopGroup bossGroup
private io.netty.channel.nio.NioEventLoopGroup workerGroup
private int bossThreadCount
private int workerThreadCount
private InetSocketAddress socketAddress
private int portNumber
protected io.netty.channel.ChannelInitializer<? extends io.netty.channel.Channel> channelInitializer
public void setChannelOptions(Map<io.netty.channel.ChannelOption<?>,Object> channelOptions)
public io.netty.channel.nio.NioEventLoopGroup getBossGroup()
public void setBossGroup(io.netty.channel.nio.NioEventLoopGroup bossGroup)
public io.netty.channel.nio.NioEventLoopGroup getWorkerGroup()
public void setWorkerGroup(io.netty.channel.nio.NioEventLoopGroup workerGroup)
public int getBossThreadCount()
public void setBossThreadCount(int bossThreadCount)
public int getWorkerThreadCount()
public void setWorkerThreadCount(int workerThreadCount)
public InetSocketAddress getSocketAddress()
public void setSocketAddress(InetSocketAddress socketAddress)
public int getPortNumber()
public void setPortNumber(int portNumber)
Copyright © 2013. All Rights Reserved.