public void removeAllConversations ( Object connectionReference ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "removeAllConversations" , connectionReference ) ; final ArrayList list ; synchronized ( activeConversations ) { list = ( ArrayList ) activeConversations . remove ( connectionReference ) ; } // Remove the connection reference from the list if ( list != null ) { try { for ( int x = 0 ; x < list . size ( ) ; x ++ ) { Conversation conv = ( Conversation ) list . get ( x ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "Found a Conversation in the table: " , conv ) ; // Now call the server transport receive listener to clean up the resources serverTransportReceiveListener . cleanupConnection ( conv ) ; } } catch ( Throwable t ) { FFDCFilter . processException ( t , CLASS_NAME + ".removeAllConversations" , CommsConstants . SERVERTRANSPORTACCEPTLISTENER_REMOVEALL_01 , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "Caught an exception cleaning up a connection" , t ) ; } // Now clear the list list . clear ( ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "removeAllConversations" ) ; }
This method is used to clean up any resources that