[ https://issues.apache.org/jira/browse/POOL-392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary D. Gregory closed POOL-392. -------------------------------- Resolution: Information Provided > Add Async addObjects Implementation > ----------------------------------- > > Key: POOL-392 > URL: https://issues.apache.org/jira/browse/POOL-392 > Project: Commons Pool > Issue Type: Improvement > Reporter: David Mollitor > Priority: Major > > {code:java|title=ObjectPool.java} > default void addObjects(final int count) throws Exception { > for (int i = 0; i < count; i++) { > addObject(); > } > } > {code} > I have a use case where `addObject` is a very expensive call: ~2m. So, to > pre-populate the pool with 5 objects requires 10m+. Would be nice to have an > async (ExecutorService) version which loads the pool in parallel. -- This message was sent by Atlassian Jira (v8.20.7#820007)