public class PooledConnectionFactory extends Object implements ConnectionFactory
Constructor and Description |
---|
PooledConnectionFactory(org.apache.commons.pool.PoolableObjectFactory poolableObjectFactory) |
Modifier and Type | Method and Description |
---|---|
Socket |
getConnection()
get e connection from the pool.
|
org.apache.commons.pool.ObjectPool |
getPool() |
void |
releaseConnection(Socket socket)
returns a connection to the pool.
|
void |
setPool(org.apache.commons.pool.ObjectPool pool) |
public PooledConnectionFactory(org.apache.commons.pool.PoolableObjectFactory poolableObjectFactory)
public Socket getConnection()
getConnection
in interface ConnectionFactory
public void releaseConnection(Socket socket)
releaseConnection
in interface ConnectionFactory
public org.apache.commons.pool.ObjectPool getPool()
public void setPool(org.apache.commons.pool.ObjectPool pool)
Copyright © 2009-2012 Julien Rialland, and the jFastCGI project developpers.. All Rights Reserved.