public class NettyServerConfig extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected io.netty.channel.EventLoopGroup |
boss |
protected Class<? extends io.netty.channel.ServerChannel> |
channelClass |
protected io.netty.handler.logging.LogLevel |
channelLevel
链路日志级别,可打印字节信息
|
protected io.netty.channel.EventLoopGroup |
ioWorkers |
protected io.netty.handler.logging.LogLevel |
level
设置日志记录的级别
当日志级别不为空时,则设置日志记录器
|
| 构造器和说明 |
|---|
NettyServerConfig() |
NettyServerConfig(Class<? extends io.netty.channel.ServerChannel> channelClass,
io.netty.channel.EventLoopGroup boss,
io.netty.channel.EventLoopGroup ioworkers) |
NettyServerConfig(int bossThreads,
int ioThreads) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destory() |
io.netty.channel.EventLoopGroup |
getBoss() |
Class<? extends io.netty.channel.ServerChannel> |
getChannelClass() |
io.netty.handler.logging.LogLevel |
getChannelLevel() |
io.netty.channel.EventLoopGroup |
getIoworkers() |
io.netty.handler.logging.LogLevel |
getLevel() |
void |
setChannelLevel(io.netty.handler.logging.LogLevel channelLevel) |
void |
setLevel(io.netty.handler.logging.LogLevel level) |
protected final Class<? extends io.netty.channel.ServerChannel> channelClass
protected final io.netty.channel.EventLoopGroup boss
protected final io.netty.channel.EventLoopGroup ioWorkers
protected io.netty.handler.logging.LogLevel level
protected io.netty.handler.logging.LogLevel channelLevel
public NettyServerConfig()
public NettyServerConfig(int bossThreads,
int ioThreads)
public NettyServerConfig(Class<? extends io.netty.channel.ServerChannel> channelClass, io.netty.channel.EventLoopGroup boss, io.netty.channel.EventLoopGroup ioworkers)
public Class<? extends io.netty.channel.ServerChannel> getChannelClass()
public io.netty.channel.EventLoopGroup getBoss()
public io.netty.channel.EventLoopGroup getIoworkers()
public io.netty.handler.logging.LogLevel getLevel()
public void setLevel(io.netty.handler.logging.LogLevel level)
public io.netty.handler.logging.LogLevel getChannelLevel()
public void setChannelLevel(io.netty.handler.logging.LogLevel channelLevel)
public void destory()
Copyright © 2020. All rights reserved.