@ -138,16 +138,16 @@ public final class HikariPool extends PoolBase implements HikariPoolMXBean, IBag
this . houseKeeperTask = houseKeepingExecutorService . scheduleWithFixedDelay ( new HouseKeeper ( ) , 100L , housekeepingPeriodMs , MILLISECONDS ) ;
this . houseKeeperTask = houseKeepingExecutorService . scheduleWithFixedDelay ( new HouseKeeper ( ) , 100L , housekeepingPeriodMs , MILLISECONDS ) ;
if ( Boolean . getBoolean ( "com.zaxxer.hikari.blockUntilFilled" ) & & config . getInitializationFailTimeout ( ) > 1 ) {
if ( Boolean . getBoolean ( "com.zaxxer.hikari.blockUntilFilled" ) & & config . getInitializationFailTimeout ( ) > 1 ) {
addConnectionExecutor . setCorePoolSize ( Math . min ( 16 , Runtime . getRuntime ( ) . availableProcessors ( ) ) ) ;
addConnectionExecutor . setMaximumPoolSize ( Math . min ( 16 , Runtime . getRuntime ( ) . availableProcessors ( ) ) ) ;
addConnectionExecutor . setMaximumPoolSize ( Math . min ( 16 , Runtime . getRuntime ( ) . availableProcessors ( ) ) ) ;
addConnectionExecutor . setCorePoolSize ( Math . min ( 16 , Runtime . getRuntime ( ) . availableProcessors ( ) ) ) ;
final long startTime = currentTime ( ) ;
final long startTime = currentTime ( ) ;
while ( elapsedMillis ( startTime ) < config . getInitializationFailTimeout ( ) & & getTotalConnections ( ) < config . getMinimumIdle ( ) ) {
while ( elapsedMillis ( startTime ) < config . getInitializationFailTimeout ( ) & & getTotalConnections ( ) < config . getMinimumIdle ( ) ) {
quietlySleep ( MILLISECONDS . toMillis ( 100 ) ) ;
quietlySleep ( MILLISECONDS . toMillis ( 100 ) ) ;
}
}
addConnectionExecutor . setCorePoolSize ( 1 ) ;
addConnectionExecutor . setMaximumPoolSize ( 1 ) ;
addConnectionExecutor . setMaximumPoolSize ( 1 ) ;
addConnectionExecutor . setCorePoolSize ( 1 ) ;
}
}
}
}