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