KeyedObjectPool.addObject

Create an object using the {@link KeyedPooledObjectFactory 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).

@param key the key a new instance should be added to

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

interface KeyedObjectPool(K, V)
void
addObject
(
K key
)

Meta