new Thread(new Runnable() { private Socket client; public Runnable init(Socket client) { this.client = client; return this; } public void run() { } }.init(client)).start();