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)
      Creates 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)
      Creates 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)
    • PoolableManagedConnection

      public PoolableManagedConnection(TransactionRegistry transactionRegistry, Connection conn, ObjectPool<PoolableConnection> pool, Collection<String> disconnectSqlCodes, Collection<String> disconnectionIgnoreSqlCodes, boolean fastFailValidation)
      Creates a PoolableManagedConnection.
      Parameters:
      transactionRegistry - transaction registry
      conn - underlying connection
      pool - connection pool
      disconnectSqlCodes - SQL State codes considered fatal disconnection errors
      disconnectionIgnoreSqlCodes - 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)
      Since:
      2.13.0
  • Method Details