Adding sleep for TCP server
@@ -47,8 +47,13 @@ public class TCPNettyServer {
// tcpNettyServer.addStreamListener(new StatisticsStreamListener(streamDefinition));
tcpNettyServer.bootServer(new ServerConfig());
+ try {
+ Thread.sleep(10000);
+ } catch (InterruptedException e) {
+ } finally {
tcpNettyServer.shutdownGracefully();
}
+ }
public void bootServer(ServerConfig serverConfig) {
bossGroup = new NioEventLoopGroup(serverConfig.getReceiverThreads());
