public void addSession(HttpSession session) { synchronized (this) { _sessions.add(getClusterId(session.getId()),session); } }
public void removeSession(HttpSession session) { synchronized (this) { _sessions.removeValue(getClusterId(session.getId()),session); } }
String cluster_id=getClusterId(requested_id); if (idInUse(cluster_id)) return cluster_id;