Class PoolableConnection

All Implemented Interfaces:
AutoCloseable, Connection, Wrapper
Direct Known Subclasses:
PoolableManagedConnection

public class PoolableConnection extends DelegatingConnection
A delegating connection that, rather than closing the underlying connection, returns itself to an ObjectPool when closed.
Version:
$Revision: 758745 $ $Date: 2009-03-26 13:02:20 -0400 (Thu, 26 Mar 2009) $
Author:
Rodney Waldhoff, Glenn L. Nielsen, James House
  • Constructor Details

    • PoolableConnection

      public PoolableConnection(Connection conn, org.apache.commons.pool.ObjectPool pool)
      Parameters:
      conn - my underlying connection
      pool - the pool to which I should return when closed
    • PoolableConnection

      public PoolableConnection(Connection conn, org.apache.commons.pool.ObjectPool pool, AbandonedConfig config)
      Parameters:
      conn - my underlying connection
      pool - the pool to which I should return when closed
      config - the abandoned configuration settings
  • Method Details