Interface PooledConnectionManager

All Known Implementing Classes:
CPDSConnectionFactory, KeyedCPDSConnectionFactory

interface PooledConnectionManager
Methods to manage PoolableConnections and the connection pools that source them.
Since:
2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    closePool(String userName)
    Closes the connection pool associated with the given user.
    void
    Closes the PooledConnection and remove it from the connection pool to which it belongs, adjusting pool counters.
    void
    setPassword(String password)
    Sets the database password used when creating connections.
  • Method Details

    • invalidate

      void invalidate(PooledConnection pc) throws SQLException
      Closes the PooledConnection and remove it from the connection pool to which it belongs, adjusting pool counters.
      Parameters:
      pc - PooledConnection to be invalidated
      Throws:
      SQLException - if an SQL error occurs closing the connection
    • setPassword

      void setPassword(String password)
      Sets the database password used when creating connections.
      Parameters:
      password - password used when authenticating to the database
    • closePool

      void closePool(String userName) throws SQLException
      Closes the connection pool associated with the given user.
      Parameters:
      userName - user name
      Throws:
      SQLException - if an error occurs closing idle connections in the pool