Class PoolableManagedConnection

    • Constructor Detail

      • PoolableManagedConnection

        public PoolableManagedConnection​(TransactionRegistry transactionRegistry,
                                         Connection conn,
                                         ObjectPool<PoolableConnection> pool)
        Create a PoolableManagedConnection.
        Parameters:
        transactionRegistry - transaction registry
        conn - underlying connection
        pool - connection pool
      • PoolableManagedConnection

        public PoolableManagedConnection​(TransactionRegistry transactionRegistry,
                                         Connection conn,
                                         ObjectPool<PoolableConnection> pool,
                                         Collection<String> disconnectSqlCodes,
                                         boolean fastFailValidation)
        Create a PoolableManagedConnection.
        Parameters:
        transactionRegistry - transaction registry
        conn - underlying connection
        pool - connection pool
        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)