Esempio n. 1
0
 synchronized void setId(int id) {
   _id = id;
   notifyAll();
 }
Esempio n. 2
0
 /** Removes a companion from the _companions map. */
 private synchronized void removeCompanion(int sessionId) {
   _companions.remove(sessionId);
   notifyAll();
 }