ObjectPool.addObject

Creates an object using the {@link PooledObjectFactory factory} or other implementation dependent mechanism, passivate it, and then place it in the idle object pool. <code>addObject</code> is useful for "pre-loading" a pool with idle objects. (Optional operation).

@throws Exception when {@link PooledObjectFactory#makeObject} fails. @throws IllegalStateException after {@link #close} has been called on this pool. @throws UnsupportedOperationException when this pool cannot add new idle objects.

interface ObjectPool(T)
void
addObject
()

Meta