protected long preConnection ( ) throws SQLException { long statsObtainTime = 0 ; if ( this . pool . poolShuttingDown ) { throw new SQLException ( this . pool . shutdownStackTrace ) ; } if ( this . pool . statisticsEnabled ) { statsObtainTime = System . nanoTime ( ) ; this . pool . statistics . incrementConnectionsRequested ( ) ; } return statsObtainTime ; }
Prep for a new connection