public void addPool ( String alias , int minSize , int maxSize ) { if ( alias == null ) { throw new NullPointerException ( "Pool alias cannot be null" ) ; } if ( poolConfigurations . containsKey ( alias ) ) { throw new IllegalArgumentException ( "A pool with the alias '" + alias + "' is already configured" ) ; } else { poolConfigurations . put ( alias , new PoolConfiguration ( minSize , maxSize ) ) ; } }
Adds a new pool with the provided minimum and maximum .