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