126127128129130131132133134135136
if( maxStrict && ( !blocking ) && i >= max ) { // This request shoudl throw an exception. try { pool.execute( runner ); fail( "Should have failed when requesting more than max resources." ); } catch( Exception e ) { // Ok
137138139140141142143144145146147
incCompleteCount(); } } else { pool.execute( runner ); } } long dur = System.currentTimeMillis() - start; // Make sure that the size of the pool is what is expected.
128129130131132133134135136137138
139140141142143144145146147148149