/** * Sets the object factory associated with the pool * * @param factory object factory * @deprecated to be removed in version 2.0 */ @Deprecated public void setFactory(final PoolableObjectFactory<T> factory) throws IllegalStateException, UnsupportedOperationException { pool.setFactory(factory); }
/** * {@inheritDoc} * @deprecated to be removed in pool 2.0 */ @Deprecated public void setFactory(final PoolableObjectFactory<T> factory) throws IllegalStateException, UnsupportedOperationException { pool.setFactory(factory); }
/** * Sets the factory used by the pool. * * @param factory new PoolableObjectFactory * @deprecated to be removed in pool 2.0 */ @Deprecated public void setFactory(final PoolableObjectFactory<T> factory) throws IllegalStateException, UnsupportedOperationException { synchronized (lock) { pool.setFactory(factory); } }
/** * Sets the factory used to manage objects. * * @param factory new factory to use managing object instances * @deprecated to be removed in version 2.0 */ @Deprecated @SuppressWarnings("unchecked") public void setFactory(final KeyedPoolableObjectFactory<K, V> factory) throws IllegalStateException, UnsupportedOperationException { pool.setFactory(adapt((KeyedPoolableObjectFactory<Object, V>)factory)); }
public SessionPool(ConnectionPool connectionPool, SessionKey key, ObjectPool sessionPool) { this.connectionPool = connectionPool; this.key = key; this.sessionPool = sessionPool; sessionPool.setFactory(this); }
public void setFactory(PoolableObjectFactory<FeaturesClient> arg0) throws IllegalStateException, UnsupportedOperationException { instance.setFactory(arg0); }
public void setFactory(final PoolableObjectFactory factory) throws IllegalStateException, UnsupportedOperationException { synchronized (lock) { pool.setFactory(factory); } }
public void setFactory(final PoolableObjectFactory factory) throws IllegalStateException, UnsupportedOperationException { synchronized (lock) { pool.setFactory(factory); } }
public XASessionPool(final XAConnection connection, final ObjectPool sessionPool) { this.connection = connection; this.sessionPool = sessionPool; sessionPool.setFactory(this); }
/** * Set a custom ObjectPool instance to use for the connection pooling. * * @param pool */ public void setPool(ObjectPool pool) { if (pool != null) { pool.setFactory(this); } this.pool = pool; }
/** * Sets the factory used by the pool. * * @param factory new PoolableObjectFactory * @deprecated to be removed in pool 2.0 */ @Deprecated public void setFactory(final PoolableObjectFactory<T> factory) throws IllegalStateException, UnsupportedOperationException { synchronized (lock) { pool.setFactory(factory); } }
/** * {@inheritDoc} * @deprecated to be removed in pool 2.0 */ @Deprecated public void setFactory(final PoolableObjectFactory<T> factory) throws IllegalStateException, UnsupportedOperationException { pool.setFactory(factory); }
/** * Sets the object factory associated with the pool * * @param factory object factory * @deprecated to be removed in version 2.0 */ @Deprecated public void setFactory(final PoolableObjectFactory<T> factory) throws IllegalStateException, UnsupportedOperationException { pool.setFactory(factory); }
/** * {@inheritDoc} * @deprecated to be removed in pool 2.0 */ @Deprecated public void setFactory(final PoolableObjectFactory<T> factory) throws IllegalStateException, UnsupportedOperationException { pool.setFactory(factory); }
/** * Sets the object factory associated with the pool * * @param factory object factory * @deprecated to be removed in version 2.0 */ @Deprecated public void setFactory(final PoolableObjectFactory<T> factory) throws IllegalStateException, UnsupportedOperationException { pool.setFactory(factory); }
/** * Sets the factory used by the pool. * * @param factory new PoolableObjectFactory * @deprecated to be removed in pool 2.0 */ @Deprecated public void setFactory(final PoolableObjectFactory<T> factory) throws IllegalStateException, UnsupportedOperationException { synchronized (lock) { pool.setFactory(factory); } }
/** * Sets the factory used to manage objects. * * @param factory new factory to use managing object instances * @deprecated to be removed in version 2.0 */ @Deprecated @SuppressWarnings("unchecked") public void setFactory(final KeyedPoolableObjectFactory<K, V> factory) throws IllegalStateException, UnsupportedOperationException { pool.setFactory(adapt((KeyedPoolableObjectFactory<Object, V>)factory)); }
/** * Sets the factory used to manage objects. * * @param factory new factory to use managing object instances * @deprecated to be removed in version 2.0 */ @Deprecated @SuppressWarnings("unchecked") public void setFactory(final KeyedPoolableObjectFactory<K, V> factory) throws IllegalStateException, UnsupportedOperationException { pool.setFactory(adapt((KeyedPoolableObjectFactory<Object, V>)factory)); }
public PoolableConnectionFactory(final String host, final int port, final int timeout, final String password, ObjectPool pool) { super(); this.connectionFactory = new ConnectionFactoryImpl(host, port, timeout, password); this.pool = pool; pool.setFactory(this); }
public void afterPropertiesSet() throws Exception { if (pool == null) { GenericObjectPool goPool = new GenericObjectPool(); goPool.setTestOnBorrow(true); goPool.setWhenExhaustedAction(GenericObjectPool.WHEN_EXHAUSTED_GROW); pool = goPool; } pool.setFactory(this); }