protected void postConnection ( ConnectionHandle handle , long statsObtainTime ) { handle . renewConnection ( ) ; // mark it as being logically "open" // Give an application a chance to do something with it. if ( handle . getConnectionHook ( ) != null ) { handle . getConnectionHook ( ) . onCheckOut ( handle ) ; } if ( this . pool . closeConnectionWatch ) { // a debugging tool this . pool . watchConnection ( handle ) ; } if ( this . pool . statisticsEnabled ) { this . pool . statistics . addCumulativeConnectionWaitTime ( System . nanoTime ( ) - statsObtainTime ) ; } }
After obtaining a connection perform additional tasks .