GenericKeyedObjectPool.addObject

Create an object using the {@link KeyedPooledObjectFactory#makeObject factory}, passivate it, and then place it in the idle object pool. <code>addObject</code> is useful for "pre-loading" a pool with idle objects.

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

@throws Exception when {@link KeyedPooledObjectFactory#makeObject} fails.

class GenericKeyedObjectPool(K, T)
override
void
addObject
(
K key
)

Meta