It appears to clientSocketbe your only externally visible link. From another thread, callclientSocket.close()
ObjectInputStream IOException readObject(). catch .
, , readObject InterruptedException. : readObject, throws, InterruptedException.
catch (Exception ex) ( AKA), objectReadingThread.interrupt() ( , ). Javadoc:
wait(), wait (long), wait (long, int) Object, join(), join (long), join (long, int), sleep (long) sleep (long, int), , , InterruptedException.
- , , , ClosedByInterruptException.
, , , , .
, .
, , " - " , .