Package io.agroal.pool
Class ConnectionFactory
- java.lang.Object
-
- io.agroal.pool.ConnectionFactory
-
- All Implemented Interfaces:
TransactionIntegration.ResourceRecoveryFactory
public final class ConnectionFactory extends Object implements TransactionIntegration.ResourceRecoveryFactory
- Author:
- Luis Barreiro
-
-
Constructor Summary
Constructors Constructor Description ConnectionFactory(AgroalConnectionFactoryConfiguration configuration, AgroalDataSourceListener... listeners)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XAConnectioncreateConnection()XAConnectiongetRecoveryConnection()
-
-
-
Constructor Detail
-
ConnectionFactory
public ConnectionFactory(AgroalConnectionFactoryConfiguration configuration, AgroalDataSourceListener... listeners)
-
-
Method Detail
-
createConnection
public XAConnection createConnection() throws SQLException
- Throws:
SQLException
-
getRecoveryConnection
public XAConnection getRecoveryConnection()
- Specified by:
getRecoveryConnectionin interfaceTransactionIntegration.ResourceRecoveryFactory
-
-