So, I'm creating a chatroom with no 3rd party libraries and currently I'm logging people in like this:public void run() {    try {        this.running = true;        ServerSocket ss = new ServerSocket(1000);        while (this.running) {            this.threadPool.execute(new InfoGrabber(ss.accept()));        }    } catch (IOException ex) {        Logger.getLogger(Listener.class.getName()).log(Level.SEVERE, null, ex);    }}private class InfoGrabber implements Runnable {    private final Socket socket;    public InfoGrabber(Socket socket) {        this.socket = socket;    }    @Override    public void run() {        try {            ObjectInputStream ois = new ObjectInputStream(socket.getInputStream());            Object obj = ois.readObject();            if (obj instanceof ClientInformation) {                clientManager.addClient(new ClientClass((ClientInformation) obj, new ClientConnection(socket, ois, ((ClientInformation)obj).getUUID())));                System.out.println(Client connected);            }        } catch (IOException | ClassNotFoundException ex) {            Logger.getLogger(Listener.class.getName()).log(Level.SEVERE, null, ex);        }    }}Is there a better way to do this?Git for more context https://github.com/CjStaal/ChatRoomI have a systemQueue set up which takes SystemMessage which is a string, and an object. I want to be able to make this better, and have it more encapsulated and modular to allow easier maintainability and expandability. In the long run, I want it to be able to authenticate against a SQL database.
Chatroom log in with no 3rd party libraries
java;performance;server