| | |
| | | // 配置系统心跳间隔 |
| | | ioServerOption.setReaderIdleTime(5 * 60); |
| | | |
| | | NettyServer ioServer = new NettyServer(ioServerOption, messageConsume, ioSessionListener, heartbeatProvider); |
| | | ioServer = new NettyServer(ioServerOption, messageConsume, ioSessionListener, heartbeatProvider); |
| | | ioServer.startup(); |
| | | |
| | | |
| | | log.info("* "); |
| | | log.info("* ========================"); |
| | | log.info("* "); |
| | | log.info("* [GRAIN-SERVER:BHZN_GRAIN,PORT={}]" + port); |
| | | log.info("* [GRAIN-SERVER:BHZN_GRAIN-V2,PORT={}]" + port); |
| | | log.info("* "); |
| | | log.info("* ========================"); |
| | | log.info("* "); |
| | | |
| | | System.out.println("* ========================"); |
| | | System.out.println("* "); |
| | | System.out.println("* [GRAIN-SERVER:BHZN_GRAIN,PORT={}]" + port); |
| | | System.out.println("* [GRAIN-SERVER:BHZN_GRAIN-V2,PORT={}]" + port); |
| | | System.out.println("* "); |
| | | System.out.println("* ========================"); |
| | | } |