Class PoolableConnection

    • Constructor Detail

      • PoolableConnection

        public PoolableConnection​(Connection conn,
                                  ObjectPool<PoolableConnection> pool,
                                  ObjectName jmxName)
        Parameters:
        conn - my underlying connection
        pool - the pool to which I should return when closed
        jmxName - JMX name
      • PoolableConnection

        public PoolableConnection​(Connection conn,
                                  ObjectPool<PoolableConnection> pool,
                                  ObjectName jmxObjectName,
                                  Collection<String> disconnectSqlCodes,
                                  boolean fastFailValidation)
        Parameters:
        conn - my underlying connection
        pool - the pool to which I should return when closed
        jmxObjectName - JMX name
        disconnectSqlCodes - SQL_STATE codes considered fatal disconnection errors
        fastFailValidation - true means fatal disconnection errors cause subsequent validations to fail immediately (no attempt to run query or isValid)