Class PoolableManagedConnection

All Implemented Interfaces:
AutoCloseable, Connection, Wrapper, PoolableConnectionMXBean, TrackedUse

public class PoolableManagedConnection extends PoolableConnection
PoolableConnection that unregisters from TransactionRegistry on Connection real destroy.
Since:
2.0
See Also:
  • Constructor Details

    • 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)
  • Method Details