public void sendExcept(Serializable exceptId, String msg) {
readLock.lock();
try {
for (Entry<Serializable, Socket> entry : socketMapping.entrySet()) {
Serializable id = entry.getKey();
Socket socket = entry.getValue();
if (id.equals(exceptId)) {
continue;
}
socket.send(msg);
}
} finally {
readLock.unlock();
}
}