public void configure ( Configuration pConfig ) throws ConfigurationException { if ( pConfig instanceof PBPoolConfiguration ) { PBPoolConfiguration conf = ( PBPoolConfiguration ) pConfig ; this . setMaxActive ( conf . getMaxActive ( ) ) ; this . setMaxIdle ( conf . getMaxIdle ( ) ) ; this . setMaxWait ( conf . getMaxWaitMillis ( ) ) ; this . setMinEvictableIdleTimeMillis ( conf . getMinEvictableIdleTimeMillis ( ) ) ; this . setTimeBetweenEvictionRunsMillis ( conf . getTimeBetweenEvictionRunsMilli ( ) ) ; this . setWhenExhaustedAction ( conf . getWhenExhaustedAction ( ) ) ; } else { LoggerFactory . getDefaultLogger ( ) . error ( this . getClass ( ) . getName ( ) + " cannot read configuration properties, use default." ) ; } }
Read in the configuration properties .