public void remove ( String identifier , ActiveConnectionRecord record ) { synchronized ( records ) { // Get set of active connection records Set < ActiveConnectionRecord > connections = records . get ( identifier ) ; assert ( connections != null ) ; // Remove old record connections . remove ( record ) ; // If now empty, clean the tracking entry if ( connections . isEmpty ( ) ) records . remove ( identifier ) ; } }
Removes the given connection record from the list of active connections associated with the object having the given identifier .