java recommended way for shutting down multiple user sessions java recommended way for shutting down multiple user sessions multithreading multithreading

java recommended way for shutting down multiple user sessions


Send the session close request on all sessions, wait your five seconds, then check all sessions. That way the session closes can happen in parallel without starting a whole bunch of new threads.