|  |  |  | 
|---|
|  |  |  | private EventLoopGroup bossGroup; | 
|---|
|  |  |  | private EventLoopGroup workerGroup; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | public OnlineServer(TcpProperties tcpProperties, HandlerInitializer handlerInitializer) { ; | 
|---|
|  |  |  | this.tcpProperties = tcpProperties; | 
|---|
|  |  |  | this.handlerInitializer = handlerInitializer; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | { | 
|---|
|  |  |  | bootstrap = new ServerBootstrap(); | 
|---|
|  |  |  | bossGroup = new NioEventLoopGroup(1); | 
|---|
|  |  |  | workerGroup = new NioEventLoopGroup(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | public OnlineServer(TcpProperties tcpProperties, HandlerInitializer handlerInitializer) { | 
|---|
|  |  |  | ; | 
|---|
|  |  |  | this.tcpProperties = tcpProperties; | 
|---|
|  |  |  | this.handlerInitializer = handlerInitializer; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | *  tcp server init | 
|---|