package com.ard.utils.netty.tcp; public class BootNettyClientThread extends Thread { private final int port; private final String host; public BootNettyClientThread(String host,int port){ this.port = port; this.host = host; } public void run() { try { new BootNettyClient().connect(host,port); } catch (Exception e) { throw new RuntimeException(e); } } }