private void waitUntilReconstitutionIsCompleted ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "waitUntilReconstitutionISCompleted" ) ; // gracefully shutdown the pool _reconstituteThreadpool . shutdown ( ) ; //awaitTermination() is a blocking call and caller thread will be blocked //until all tasks in pool have completed execution after a shutdown request try { _reconstituteThreadpool . awaitTermination ( Long . MAX_VALUE , TimeUnit . MILLISECONDS ) ; } catch ( InterruptedException e ) { // No FFDC code needed SibTr . exception ( tc , e ) ; } //Destroy the thread pool _reconstituteThreadpool = null ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "waitUntilReconstitutionISCompleted" ) ; }
Will wait until the reconstitution is completed This will be called for each of BaseDestinationHandler LinkHandler and MQLinkHandler The threadpool will be destroyed