Java nio server client asynchonous <p>I made a server myself using java nio and a selector. I can receive the data and answer directly from the client if needed.</p> <p>But now I want a thread that will process data, and anytime it will send data to each client.</p> <p>So how can I do that? Also how to keep in memory all channels to write the data to each client ?</p> <p>If you need I can post the part of my code with java nio.</p>