Class PoolableManagedConnection

    • Constructor Detail

      • PoolableManagedConnection

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

        public PoolableManagedConnection​(TransactionRegistry transactionRegistry,
                                         java.sql.Connection conn,
                                         ObjectPool<PoolableConnection> pool,
                                         java.util.Collection<java.lang.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)