类 AbstractServer

java.lang.Object
cn.godmao.netty.server.AbstractServer
所有已实现的接口:
IConnect
直接已知子类:
Server

public abstract class AbstractServer extends Object implements IConnect
  • 字段详细资料

    • log

      public final org.slf4j.Logger log
  • 构造器详细资料

    • AbstractServer

      public AbstractServer(int port)
  • 方法详细资料

    • start

      public void start()
      指定者:
      start 在接口中 IConnect
    • stop

      public void stop()
    • getPort

      public int getPort()
    • getChannelService

      public ChannelService getChannelService()
      指定者:
      getChannelService 在接口中 IConnect
    • setChannelService

      public void setChannelService(ChannelService channelService)
    • 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)