类 AbstractServer
java.lang.Object
cn.godmao.netty.server.AbstractServer
- 所有已实现的接口:
IConnect
- 直接已知子类:
Server
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明intgetPort()voidsetBoot(io.netty.bootstrap.ServerBootstrap boot) voidsetBossGroup(io.netty.channel.EventLoopGroup bossGroup) voidsetChannelInitializer(io.netty.channel.ChannelInitializer<io.netty.channel.Channel> channelInitializer) voidsetChannelService(ChannelService channelService) voidsetWorkGroup(io.netty.channel.EventLoopGroup workGroup) voidstart()voidstop()
-
字段详细资料
-
log
public final org.slf4j.Logger log
-
-
构造器详细资料
-
AbstractServer
public AbstractServer(int port)
-
-
方法详细资料
-
start
public void start() -
stop
public void stop() -
getPort
public int getPort() -
getChannelService
- 指定者:
getChannelService在接口中IConnect
-
setChannelService
-
setBoot
public void setBoot(io.netty.bootstrap.ServerBootstrap boot) -
setBossGroup
public void setBossGroup(io.netty.channel.EventLoopGroup bossGroup) -
setWorkGroup
public void setWorkGroup(io.netty.channel.EventLoopGroup workGroup) -
setChannelInitializer
public void setChannelInitializer(io.netty.channel.ChannelInitializer<io.netty.channel.Channel> channelInitializer)
-